]> arthur.barton.de Git - netatalk.git/commitdiff
Readability fix (endif comment was wrong), remove ifdef DEBUG, adjust loglevel to...
authorfranklahm <franklahm>
Mon, 28 Sep 2009 12:04:51 +0000 (12:04 +0000)
committerfranklahm <franklahm>
Mon, 28 Sep 2009 12:04:51 +0000 (12:04 +0000)
etc/afpd/auth.c

index 9923ac4ee0a2c0ec204f32c946d43864be48def2..ea09460ad4930b309ada3249b8cce26dee057fb1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: auth.c,v 1.64 2009-09-28 09:21:09 franklahm Exp $
+ * $Id: auth.c,v 1.65 2009-09-28 12:04:51 franklahm Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -327,9 +327,8 @@ static int login(AFPObj *obj, struct passwd *pwd, void (*logout)(void), int expi
     }
 
 #ifdef ADMIN_GRP
-#ifdef DEBUG
-    LOG(log_info, logtype_afpd, "obj->options.admingid == %d", obj->options.admingid);
-#endif /* DEBUG */
+    LOG(log_debug, logtype_afpd, "obj->options.admingid == %d", obj->options.admingid);
+
     if (obj->options.admingid != 0) {
         int i;
         for (i = 0; i < ngroups; i++) {
@@ -341,7 +340,7 @@ static int login(AFPObj *obj, struct passwd *pwd, void (*logout)(void), int expi
         LOG(log_info, logtype_afpd, "admin login -- %s", pwd->pw_name );
     }
     if (!admin)
-#endif /* DEBUG */
+#endif /* ADMIN_GRP */
 #ifdef TRU64
     {
         struct DSI *dsi = obj->handle;