d7260847a5
Submitted by maintainer Ian McWilliam <i.mcwilliam@uws.edu.au>.
37 lines
640 B
Plaintext
37 lines
640 B
Plaintext
--- bin/nbp/nbpunrgstr.c.orig Sat Jul 31 02:08:01 1993
|
|
+++ bin/nbp/nbpunrgstr.c Mon Nov 8 12:53:42 1999
|
|
@@ -24,15 +24,18 @@
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netatalk/at.h>
|
|
+#include <atalk/nbp.h>
|
|
#include <stdio.h>
|
|
+#include <string.h>
|
|
#include <strings.h>
|
|
|
|
+void
|
|
Usage( av0 )
|
|
char *av0;
|
|
{
|
|
char *p;
|
|
|
|
- if (( p = rindex( av0, '/' )) == 0 ) {
|
|
+ if (( p = strrchr( av0, '/' )) == 0 ) {
|
|
p = av0;
|
|
} else {
|
|
p++;
|
|
@@ -42,6 +45,7 @@
|
|
exit( 1 );
|
|
}
|
|
|
|
+int
|
|
main( ac, av )
|
|
int ac;
|
|
char **av;
|
|
@@ -64,4 +68,5 @@
|
|
Zone ? Zone : "*" );
|
|
exit( 1 );
|
|
}
|
|
+ return(0);
|
|
}
|