]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/uam.c
Reduce log clutter
[netatalk.git] / etc / afpd / uam.c
index 3bb636f7ece899a0b0a3846b9fad32d92fb47673..92173915c5f5cc5e7dfa8934c00f1a1ba34a1d85 100644 (file)
@@ -56,11 +56,7 @@ char *strchr (), *strrchr ();
 #include "auth.h"
 #include "uam_auth.h"
 
-#ifdef AFP3x
 #define utf8_encoding() (afp_version >= 30)
-#else
-#define utf8_encoding() (0)
-#endif
 
 #ifdef TRU64
 #include <netdb.h>
@@ -428,7 +424,7 @@ int uam_afpserver_option(void *private, const int what, void *option,
     {
         struct DSI *dsi = obj->handle;
         const struct sockaddr *sa;
-        char hbuf[NI_MAXHOST];
+        static char hbuf[NI_MAXHOST];
         
         sa = (struct sockaddr *)&dsi->client;
         if (getnameinfo(sa, sizeof(dsi->client), hbuf, sizeof(hbuf), NULL, 0, 0) == 0)