-char title[80]; /* ``pr'' title */
-FILE *cfp; /* control file */
-int pfd; /* printer file descriptor */
-int ofd; /* output filter file descriptor */
-int lfd; /* lock file descriptor */
-int pid; /* pid of lpd process */
-int prchild; /* id of pr process */
-int child; /* id of any filters */
-int ofilter; /* id of output filter, if any */
-int tof; /* true if at top of form */
-int remote; /* true if sending files to remote */
-dev_t fdev; /* device of file pointed to by symlink */
-ino_t fino; /* inode of file pointed to by symlink */
-
-char fromhost[32]; /* user's host machine */
-char logname[32]; /* user's login name */
-char jobname[100]; /* job or file name */
-char class[32]; /* classification field */
-char width[10] = "-w"; /* page width in characters */
-char length[10] = "-l"; /* page length in lines */
-char pxwidth[10] = "-x"; /* page width in pixels */
-char pxlength[10] = "-y"; /* page length in pixels */
-char indent[10] = "-i0"; /* indentation size in characters */
-char tempfile[] = "errsXXXXXX"; /* file name for filter output */
-
+static dev_t fdev; /* device of file pointed to by symlink */
+static ino_t fino; /* inode of file pointed to by symlink */
+static FILE *cfp; /* control file */
+static int child; /* id of any filters */
+static int lfd; /* lock file descriptor */
+static int ofd; /* output filter file descriptor */
+static int ofilter; /* id of output filter, if any */
+static int pfd; /* prstatic inter file descriptor */
+static int pid; /* pid of lpd process */
+static int prchild; /* id of pr process */
+static char title[80]; /* ``pr'' title */
+static int tof; /* true if at top of form */
+
+static char class[32]; /* classification field */
+static char fromhost[32]; /* user's host machine */
+ /* indentation size in static characters */
+static char indent[10] = "-i0";
+static char jobname[100]; /* job or file name */
+static char length[10] = "-l"; /* page length in lines */
+static char logname[32]; /* user's login name */
+static char pxlength[10] = "-y"; /* page length in pixels */
+static char pxwidth[10] = "-x"; /* page width in pixels */
+static char tempfile[] = "errsXXXXXX"; /* file name for filter output */
+static char width[10] = "-w"; /* page width in static characters */
+
+static void abortpr __P((int));
+static void banner __P((char *, char *));
+static int dofork __P((int));
+static int dropit __P((int));
+static void init __P((void));
+static void openpr __P((void));
+static void opennet __P((char *));
+static void opentty __P((void));
+static void openrem __P((void));
+static int print __P((int, char *));
+static int printit __P((char *));
+static void pstatus __P((const char *, ...));
+static char response __P((void));
+static void scan_out __P((int, char *, int));
+static char *scnline __P((int, char *, int));
+static int sendfile __P((int, char *));
+static int sendit __P((char *));
+static void sendmail __P((char *, int));
+static void setty __P((void));
+
+void