]> arthur.barton.de Git - netatalk.git/blobdiff - etc/papd/ppd.c
remove bogus default ppd _PATH_PAPDPPDFILE, from Olaf Hering
[netatalk.git] / etc / papd / ppd.c
index bde0ec0f566d98fa8492f705c665cbe9670f57e1..786ee9c69e4b888e6c039c61da03cc36cecb9f15 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ppd.c,v 1.13 2009-01-21 02:42:56 didg Exp $
+ * $Id: ppd.c,v 1.14 2009-01-21 04:04:20 didg Exp $
  *
  * Copyright (c) 1995 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -51,16 +51,17 @@ struct ppdent {
 };
 
 #ifndef SHOWPPD
-int ppd_inited = 0;
+static int ppd_inited;
 
-int ppd_init()
+static void ppd_init()
 {
-    if ( ppd_inited ) {
-       return( -1 );
-    }
+    if (ppd_inited)
+        return;
+
     ppd_inited++;
 
-    return read_ppd( printer->p_ppdfile, 0 );
+    if (printer->p_ppdfile)
+        read_ppd( printer->p_ppdfile, 0 );
 }
 #endif /* SHOWPPD */