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
+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 <stdlib.h>
+
+ * krcp.c: Add <stdlib.h>.
+
+Sat May 6 18:12:37 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * krcp.c (answer_auth): Added const declaration to filenames.
Fri May 05 09:16:16 1995 Chris Provenzano (proven@mit.edu)
/* derived from @(#)rcmd.c 5.17 (Berkeley) 6/27/88 */
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
#include <stdio.h>
#include <ctype.h>
#include <string.h>
/*
* rcp
*/
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
#include <sys/param.h>
#ifndef _TYPES_
#include <sys/types.h>
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))
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);
}