openbsd-ports/net/netatalk/reference/patches/patch-etcpapd-magicsc
naddy d7260847a5 Re-import netatalk-990130 into subdirectory.
Submitted by maintainer Ian McWilliam <i.mcwilliam@uws.edu.au>.
2002-07-23 11:47:35 +00:00

60 lines
1.1 KiB
Plaintext

--- etc/papd/magics.c.orig Sun Aug 17 09:20:26 1997
+++ etc/papd/magics.c Mon Nov 15 11:34:39 1999
@@ -6,20 +6,24 @@
#include <sys/syslog.h>
#include <sys/param.h>
#include <stdio.h>
-#include <strings.h>
+#include <string.h>
#include "file.h"
#include "comment.h"
+extern int lp_open(), lp_close(), lp_write();
+extern int compush(), comswitch();
+extern void compop();
+
+int
ps( infile, outfile )
struct papfile *infile, *outfile;
{
- int c;
char *start, *stop;
struct comment *comment;
for (;;) {
- if ( comment = compeek()) {
+ if ( (comment = compeek())) {
switch( (*comment->c_handler)( infile, outfile )) {
case CH_DONE :
continue;
@@ -65,6 +69,7 @@
}
}
+int
cm_psquery( in, out )
struct papfile *in, *out;
{
@@ -96,6 +101,7 @@
}
}
+int
cm_psadobe( in, out )
struct papfile *in, *out;
{
@@ -135,11 +141,11 @@
char *Query = "Query";
+int
cm_psswitch( in, out )
struct papfile *in, *out;
{
char *start, *stop, *p;
- struct comment *comment = compeek();
switch ( markline( &start, &stop, in )) {
case 0 :