* sserver.c (main): Use GETPEERNAME_ARG3_TYPE instead of int
authorEzra Peisach <epeisach@mit.edu>
Tue, 6 Nov 2001 01:50:51 +0000 (01:50 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 6 Nov 2001 01:50:51 +0000 (01:50 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13945 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/sample/sserver/ChangeLog
src/appl/sample/sserver/sserver.c

index b1be5c3f81e199ada122da89192412237eb27c47..041e776fb6be7e4803a016f061455a8ab35fb8cb 100644 (file)
@@ -1,3 +1,7 @@
+2001-11-05  Ezra Peisach  <epeisach@mit.edu>
+
+       * sserver.c (main): Use GETPEERNAME_ARG3_TYPE instead of int.
+
 2000-07-28  Ezra Peisach  <epeisach@mit.edu>
 
        * sserver.c (main): Include unistd.h if present (for close
index f28cdd2baf610a456850f34e76d7c6d9a751ed43..979b0ffd478e1055599fd83ed3eb35ebd9e1127e 100644 (file)
 
 extern krb5_deltat krb5_clockskew;
 
+#ifndef GETPEERNAME_ARG3_TYPE
+#define GETPEERNAME_ARG3_TYPE int
+#endif
+
 #define DEBUG
 
 static void
@@ -76,7 +80,7 @@ main(argc, argv)
     krb5_auth_context auth_context = NULL;
     krb5_ticket * ticket;
     struct sockaddr_in peername;
-    int namelen = sizeof(peername);
+    GETPEERNAME_ARG3_TYPE  namelen = sizeof(peername);
     int sock = -1;                     /* incoming connection fd */
     krb5_data recv_data;
     short xmitlen;