]> arthur.barton.de Git - netatalk.git/blobdiff - etc/papd/showppd.c
Set version to 2.1
[netatalk.git] / etc / papd / showppd.c
index 80e4d0d7a5efd7d10496d532c925cd78c323d0fb..d023204827ff27b97cf610f16beaa9244bd485ff 100644 (file)
@@ -1,16 +1,18 @@
 /*
+ * $Id: showppd.c,v 1.7 2009-10-13 22:55:37 didg Exp $
+ *
  * Copyright (c) 1995 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
  */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
+#endif /* HAVE_CONFIG_H */
 
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/syslog.h>
+#include <atalk/logger.h>
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/time.h>
@@ -24,9 +26,7 @@ extern struct ppd_font                *ppd_fonts;
 extern struct ppd_feature      ppd_features[];
 
 
-main( ac, av )
-    int                ac;
-    char       **av;
+int main(int ac, char **av)
 {
     struct ppd_feature *pfe;
     struct ppd_font    *pfo;
@@ -41,8 +41,8 @@ main( ac, av )
        printf( "Font: %s\n", pfo->pd_font );
     }
     for ( pfe = ppd_features; pfe->pd_name; pfe++ ) {
-       printf( "Feature: %s %s\n", pfe->pd_name, pfe->pd_value );
+       printf( "Feature: %s %s\n", pfe->pd_name, (pfe->pd_value)?pfe->pd_value:"NULL" );
     }
 
-    exit( 0 );
+    exit ( 0 );
 }