summaryrefslogtreecommitdiff
path: root/mail/pathalias/files/patch-main.c
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2013-12-28 06:59:23 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2013-12-28 06:59:23 +0000
commit5f37cdd9cb558ada47421dc40c35cb11422862b7 (patch)
treeb90facdaca7f7184135f3c45b432b9f2c6e0afda /mail/pathalias/files/patch-main.c
parent- apply gawk patch in any case (diff)
- fix exports/imports
Diffstat (limited to '')
-rw-r--r--mail/pathalias/files/patch-main.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/mail/pathalias/files/patch-main.c b/mail/pathalias/files/patch-main.c
index d9e91c6c255a..eac90406d4a8 100644
--- a/mail/pathalias/files/patch-main.c
+++ b/mail/pathalias/files/patch-main.c
@@ -1,5 +1,5 @@
--- main.c.orig 1993-03-03 22:10:02.000000000 +0100
-+++ main.c 2013-06-16 17:10:48.000000000 +0200
++++ main.c 2013-06-16 23:52:03.000000000 +0200
@@ -1,6 +1,6 @@
-/* pathalias -- by steve bellovin, as told to peter honeyman */
+/*_pathalias -- by steve bellovin, as told to peter honeyman */
@@ -9,13 +9,11 @@
#endif
#ifndef VMS
-@@ -9,10 +9,13 @@
+@@ -9,10 +9,11 @@
#define MAIN XXmain
#endif
-+#include <stdlib.h>
+#include <unistd.h>
-+#include <string.h>
#include "def.h"
/* exports */
@@ -24,7 +22,7 @@
char *Graphout; /* file for dumping edges (-g option) */
char *Linkout; /* file for dumping shortest path tree */
char **Argv; /* external copy of argv (for input files) */
-@@ -26,26 +29,20 @@
+@@ -26,26 +27,17 @@
int InetFlag; /* local host is w/in scope of DNS (-I flag) */
int Lineno = 1; /* line number within current input file */
int Argc; /* external copy of argc (for input files) */
@@ -32,9 +30,9 @@
-extern int tracelink();
/* imports */
- extern char *optarg;
- extern int optind;
- extern long Lcount, Ncount;
+-extern char *optarg;
+-extern int optind;
+-extern long Lcount, Ncount;
-extern long allocation();
-extern void wasted(), mapit(), hashanalyze(), deadlink();
-extern char *local();
@@ -54,7 +52,7 @@
register int c;
int errflg = 0;
-@@ -122,14 +119,14 @@
+@@ -122,14 +114,14 @@
Argv[0], locname);
}
@@ -71,7 +69,7 @@
Ncount, Lcount, allocation());
Cfile = "[backlinks]"; /* for tracing back links */
-@@ -150,7 +147,7 @@
+@@ -150,7 +142,7 @@
void
die(s)