From: Ezra Peisach Date: Tue, 9 May 1995 12:27:20 +0000 (+0000) Subject: kcmd.c and krcp.c: Add for malloc declarations. X-Git-Tag: krb5-1.0-beta6~2035 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0cac7aba49a1e0f3a8e6e0a984f1cf9389624108;p=krb5.git kcmd.c and krcp.c: Add for malloc declarations. krshd.c: Cast sockadr_in * to sockaddr * in call to accept. (compiler warning). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5762 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 41b27a809..cfb1d7252 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,15 @@ +Tue May 9 08:17:18 1995 Ezra Peisach (epeisach@kangaroo.mit.edu) + + * krshd.c (main): Cast a sockaddr_in * to sockaddr * in call to + accept. + + * kcmd.c: Add + + * krcp.c: Add . + +Sat May 6 18:12:37 1995 Ezra Peisach + + * krcp.c (answer_auth): Added const declaration to filenames. Fri May 05 09:16:16 1995 Chris Provenzano (proven@mit.edu) diff --git a/src/appl/bsd/kcmd.c b/src/appl/bsd/kcmd.c index bff744dba..9cfb8f423 100644 --- a/src/appl/bsd/kcmd.c +++ b/src/appl/bsd/kcmd.c @@ -21,6 +21,9 @@ /* derived from @(#)rcmd.c 5.17 (Berkeley) 6/27/88 */ +#ifdef HAVE_STDLIB_H +#include +#endif #include #include #include diff --git a/src/appl/bsd/krcp.c b/src/appl/bsd/krcp.c index 274f6e1e5..5191fe186 100644 --- a/src/appl/bsd/krcp.c +++ b/src/appl/bsd/krcp.c @@ -30,6 +30,10 @@ char copyright[] = /* * rcp */ + +#ifdef HAVE_STDLIB_H +#include +#endif #include #ifndef _TYPES_ #include @@ -1343,7 +1347,7 @@ void krb5_auth_context *auth_context = NULL; if (config_file) { - char * filenames[2]; + const char * filenames[2]; filenames[1] = NULL; filenames[0] = config_file; if (status = krb5_set_config_files(bsd_context, filenames)) diff --git a/src/appl/bsd/krshd.c b/src/appl/bsd/krshd.c index 7d774c338..6d96e8283 100644 --- a/src/appl/bsd/krshd.c +++ b/src/appl/bsd/krshd.c @@ -393,7 +393,7 @@ main(argc, argv) exit(2); } - if ((fd = accept(s, &from, &fromlen)) < 0) { + if ((fd = accept(s, (struct sockaddr *) &from, &fromlen)) < 0) { fprintf(stderr, "Error in accept: %s\n", strerror(errno)); exit(2); }