[1159] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5b4pl3: appl/bsd/krlogind.c: Minor type fixes in gethostbyaddr, accept calls

daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Tue Mar 14 11:10:10 1995

From: "Jonathan I. Kamens" <jik@cam.ov.com>
Date: Tue, 14 Mar 1995 11:12:59 -0500
To: krb5-bugs@MIT.EDU

--- appl/bsd/krlogind.c	1995/03/09 21:28:25	1.2
+++ appl/bsd/krlogind.c	1995/03/09 21:54:51	1.4
@@ -450,7 +450,7 @@
 	     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);
 	 }
@@ -513,7 +513,7 @@
     
     alarm(0);
     fromp->sin_port = ntohs((u_short)fromp->sin_port);
-    hp = gethostbyaddr(&fromp->sin_addr, sizeof (struct in_addr),
+    hp = gethostbyaddr((char *) &fromp->sin_addr, sizeof (struct in_addr),
 		       fromp->sin_family);
     if (hp == 0) {
 	/*

home help back first fref pref prev next nref lref last post