]> arthur.barton.de Git - netatalk.git/blobdiff - bin/pap/papstatus.c
Ignore object files
[netatalk.git] / bin / pap / papstatus.c
index 4536b6b7a2949c0a6ef6f6a5d46ecf3a78446a46..0ada9c0abd67bb8566e9e825d9fffb16320b6412 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: papstatus.c,v 1.4 2001-06-29 14:14:46 rufustfirefly Exp $
+ * $Id: papstatus.c,v 1.7 2009-10-14 01:38:28 didg Exp $
  *
  * Copyright (c) 1990,1991 Regents of The University of Michigan.
  * All Rights Reserved.
@@ -33,6 +33,7 @@
 #include <sys/file.h>
 #include <netatalk/endian.h>
 #include <netatalk/at.h>
+#include <errno.h>
 #include <atalk/atp.h>
 #include <atalk/pap.h>
 #include <atalk/nbp.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <errno.h>
 
 #define _PATH_PAPRC    ".paprc"
 
 /* Forward Declaration */
-void getstatus(ATP atp, struct sockaddr_at *sat);
+static void getstatus(ATP atp, struct sockaddr_at *sat);
 
-void usage( path )
-    char       *path;
+static void usage(char *path)
 {
     char       *p;
 
@@ -62,8 +61,8 @@ void usage( path )
     exit( 1 );
 }
 
-char *
-paprc()
+static char *
+paprc(void)
 {
     static char        s[ 32 + 1 + 32 + 1 + 32 ];
     char       *name = NULL;
@@ -84,14 +83,12 @@ paprc()
     return( name );
 }
 
-char                   *printer = NULL;
+static char                    *printer = NULL;
 
-char                   cbuf[ 8 ];
-struct nbpnve          nn;
+static char                    cbuf[ 8 ];
+static struct nbpnve           nn;
 
-int main( ac, av )
-    int                ac;
-    char       **av;
+int main( int ac, char **av)
 {
     ATP                        atp;
     int                        wait, c, err = 0;
@@ -167,9 +164,7 @@ int main( ac, av )
     return 0;
 }
 
-void getstatus( atp, sat )
-    ATP                        atp;
-    struct sockaddr_at *sat;
+static void getstatus(ATP atp, struct sockaddr_at *sat)
 {
     struct iovec       iov;
     struct atp_block   atpb;