]> andersk Git - moira.git/blobdiff - lib/mr_auth.c
update paths to use /var/tmp instead of /tmp (sync to what had already
[moira.git] / lib / mr_auth.c
index ca0eb45398d4796365047944b8fc3bd59fa20fa1..25277cee3481e160ae763a910c17c3415bbfd520 100644 (file)
 
 #ifndef lint
 static char *rcsid_sms_auth_c = "$Header$";
-#endif lint
+#endif
 
 #include <mit-copyright.h>
 #include "mr_private.h"
 #include <ctype.h>
 #include <krb.h>
 #include <krb_et.h>
-#include <strings.h>
+#include <string.h>
 
 /* Authenticate this client with the MR server.  prog is the name of the
  * client program, and will be recorded in the database.
@@ -43,11 +43,11 @@ char *prog;
        
     /* Build a Kerberos authenticator. */
        
-    bzero(host, sizeof(host));
+    memset(host, 0, sizeof(host));
     if (status = mr_host(host, sizeof(host) - 1))
        return status;
 
-    strcpy(realm, krb_realmofhost(host));
+    strcpy(realm, (char *)krb_realmofhost(host));
     for (p = host; *p && *p != '.'; p++)
       if (isupper(*p))
        *p = tolower(*p);
This page took 0.308348 seconds and 4 git commands to generate.