summaryrefslogtreecommitdiffstats
path: root/usr.bin/ranlib/misc.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-04-28 11:59:43 +0000
committermarkm <markm@FreeBSD.org>2002-04-28 11:59:43 +0000
commit6e62811ca30b49afadd571304d15357244bd77af (patch)
treef88f75abadd5ac367b1a0dfc4ad6b65b65765bfb /usr.bin/ranlib/misc.c
parent679fd48b5c4e4d6775ad4fa1c131410cd1e3fc6e (diff)
downloadFreeBSD-src-6e62811ca30b49afadd571304d15357244bd77af.zip
FreeBSD-src-6e62811ca30b49afadd571304d15357244bd77af.tar.gz
ANSIfy functions, and move extern declarations into a shared header
where ${DEITY} intended them to be.
Diffstat (limited to 'usr.bin/ranlib/misc.c')
-rw-r--r--usr.bin/ranlib/misc.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/usr.bin/ranlib/misc.c b/usr.bin/ranlib/misc.c
index b67def0..f98120d 100644
--- a/usr.bin/ranlib/misc.c
+++ b/usr.bin/ranlib/misc.c
@@ -38,12 +38,15 @@
#if 0
static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/6/93";
#endif
-static const char rcsid[] =
- "$FreeBSD$";
#endif /* not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#include <sys/param.h>
#include <sys/signal.h>
+
+#include <dirent.h>
#include <err.h>
#include <errno.h>
#include <signal.h>
@@ -51,12 +54,14 @@ static const char rcsid[] =
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+
+#include "archive.h"
+#include "extern.h"
#include "pathnames.h"
extern char *archive; /* archive name */
-char *tname = "temporary file"; /* temporary file "name" */
-void error( char * );
+void error(char *);
int
tmp(void)
@@ -87,8 +92,7 @@ badfmt(void)
}
void
-error(name)
- char *name;
+error(char *name)
{
err(1, "%s", name);
}
OpenPOWER on IntegriCloud