]> arthur.barton.de Git - netatalk.git/commitdiff
Use stdint.h
authorJamie Gilbertson <jamie.gilbertson@luniv.ca>
Tue, 13 Mar 2012 02:34:31 +0000 (20:34 -0600)
committerFrank Lahm <franklahm@googlemail.com>
Mon, 19 Mar 2012 11:48:24 +0000 (12:48 +0100)
Since we now require at least C99 to build, use the standard int types defined in <stdint.h>

Signed-off-by: Jamie Gilbertson <jamie.gilbertson@luniv.ca>
etc/uams/uams_gss.c

index 5092256c7cbcda5c7866bfab7c31cbc30700e7b8..47763a8483dd7a2887cc10a801ad419f3e42f5c7 100644 (file)
@@ -10,6 +10,7 @@
 #include "config.h"
 #endif /* HAVE_CONFIG_H */
 
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <arpa/inet.h>
@@ -241,11 +242,11 @@ static int do_gss_auth(void *obj, char *ibuf, int ticket_len,
         goto cleanup_client_name;
 
     /* Authenticated, construct the reply using:
-     * authenticator length (u_int16_t)
+     * authenticator length (uint16_t)
      * authenticator
      */
     /* copy the authenticator length into the reply buffer */
-    u_int16_t auth_len = htons( authenticator_buff.length );
+    uint16_t auth_len = htons( authenticator_buff.length );
     memcpy( rbuf, &auth_len, sizeof(auth_len) );
     *rbuflen += sizeof(auth_len);
     rbuf += sizeof(auth_len);