Signal handler should take a single `int' argument
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@481 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -7,7 +7,7 @@ do_enccopy (int fd1, int fd2, int mode, des_cblock *iv, | |||||||
| 	    des_key_schedule schedule, int *num) | 	    des_key_schedule schedule, int *num) | ||||||
| { | { | ||||||
|      int ret; |      int ret; | ||||||
|      char buf[BUFSIZ]; |      u_char buf[BUFSIZ]; | ||||||
|  |  | ||||||
|      ret = read (fd1, buf, sizeof(buf)); |      ret = read (fd1, buf, sizeof(buf)); | ||||||
|      if (ret == 0) |      if (ret == 0) | ||||||
| @@ -74,7 +74,7 @@ copy_encrypted (int fd1, int fd2, des_cblock *iv, | |||||||
|  */ |  */ | ||||||
|  |  | ||||||
| RETSIGTYPE | RETSIGTYPE | ||||||
| childhandler () | childhandler (int sig) | ||||||
| { | { | ||||||
|   pid_t pid; |   pid_t pid; | ||||||
|   int status; |   int status; | ||||||
|   | |||||||
| @@ -16,6 +16,9 @@ | |||||||
| #ifdef HAVE_SYS_RESOURCE_H | #ifdef HAVE_SYS_RESOURCE_H | ||||||
| #include <sys/resource.h> | #include <sys/resource.h> | ||||||
| #endif | #endif | ||||||
|  | #ifdef HAVE_SYS_SELECT_H | ||||||
|  | #include <sys/select.h> | ||||||
|  | #endif | ||||||
| #include <sys/wait.h> | #include <sys/wait.h> | ||||||
| #include <sys/stat.h> | #include <sys/stat.h> | ||||||
| #include <sys/socket.h> | #include <sys/socket.h> | ||||||
| @@ -38,7 +41,7 @@ extern char *prog; | |||||||
| int copy_encrypted (int fd1, int fd2, des_cblock *iv, | int copy_encrypted (int fd1, int fd2, des_cblock *iv, | ||||||
| 		    des_key_schedule schedule); | 		    des_key_schedule schedule); | ||||||
|  |  | ||||||
| RETSIGTYPE childhandler (); | RETSIGTYPE childhandler (int); | ||||||
|  |  | ||||||
| int get_local_xsocket (unsigned dnr); | int get_local_xsocket (unsigned dnr); | ||||||
| int connect_local_xsocket (unsigned dnr); | int connect_local_xsocket (unsigned dnr); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Assar Westerlund
					Assar Westerlund