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

src/appl/sample/sclient/ChangeLog
src/appl/sample/sclient/sclient.c

index 5a1209e8f14f0a2edb173bae537767cf022c6af7..7c66a0b765735cea276c7f622f2e14e17cb6adcd 100644 (file)
@@ -1,3 +1,7 @@
+2001-11-05  Ezra Peisach  <epeisach@mit.edu>
+
+       * sclient.c (main): Use GETSOCKNAME_ARG3_TYPE instead of int.
+
 2001-01-30  Ezra Peisach  <epeisach@mit.edu>
 
        * sclient.c (main): Do not free auth_context unless
index 44a78735c289a49f58897420bf84f5092bb52bee..bd49bfe1f3701d8ba113f7dae6f59130a774333c 100644 (file)
@@ -54,6 +54,10 @@ extern char *malloc();
 
 #include "../sample.h"
 
+#ifndef GETSOCKNAME_ARG3_TYPE
+#define GETSOCKNAME_ARG3_TYPE int
+#endif
+
 int
 main(argc, argv)
 int argc;
@@ -62,7 +66,8 @@ char *argv[];
     struct servent *sp;
     struct hostent *hp;
     struct sockaddr_in sockin, lsockin;
-    int sock, namelen;
+    int sock;
+    GETSOCKNAME_ARG3_TYPE namelen;
     krb5_context context;
     krb5_data recv_data;
     krb5_data cksum_data;