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:
Assar Westerlund
1996-05-04 23:31:11 +00:00
parent 9d1db995ec
commit 2563f3389f
2 changed files with 6 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ do_enccopy (int fd1, int fd2, int mode, des_cblock *iv,
des_key_schedule schedule, int *num)
{
int ret;
char buf[BUFSIZ];
u_char buf[BUFSIZ];
ret = read (fd1, buf, sizeof(buf));
if (ret == 0)
@@ -74,7 +74,7 @@ copy_encrypted (int fd1, int fd2, des_cblock *iv,
*/
RETSIGTYPE
childhandler ()
childhandler (int sig)
{
pid_t pid;
int status;

View File

@@ -16,6 +16,9 @@
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/socket.h>
@@ -38,7 +41,7 @@ extern char *prog;
int copy_encrypted (int fd1, int fd2, des_cblock *iv,
des_key_schedule schedule);
RETSIGTYPE childhandler ();
RETSIGTYPE childhandler (int);
int get_local_xsocket (unsigned dnr);
int connect_local_xsocket (unsigned dnr);