Module Name: src
Committed By: joerg
Date: Sun Sep 4 20:30:06 UTC 2011
Modified Files:
src/usr.bin/mkdep: findcc.c mkdep.c
Log Message:
ANSIfy + static + __dead
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/mkdep/findcc.c
cvs rdiff -u -r1.39 -r1.40 src/usr.bin/mkdep/mkdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/mkdep/findcc.c
diff -u src/usr.bin/mkdep/findcc.c:1.5 src/usr.bin/mkdep/findcc.c:1.6
--- src/usr.bin/mkdep/findcc.c:1.5 Sun Apr 12 14:23:30 2009
+++ src/usr.bin/mkdep/findcc.c Sun Sep 4 20:30:06 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: findcc.c,v 1.5 2009/04/12 14:23:30 lukem Exp $ */
+/* $NetBSD: findcc.c,v 1.6 2011/09/04 20:30:06 joerg Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
#if !defined(lint)
__COPYRIGHT("@(#) Copyright (c) 1999 The NetBSD Foundation, Inc.\
All rights reserved.");
-__RCSID("$NetBSD: findcc.c,v 1.5 2009/04/12 14:23:30 lukem Exp $");
+__RCSID("$NetBSD: findcc.c,v 1.6 2011/09/04 20:30:06 joerg Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -49,8 +49,7 @@
#include "findcc.h"
char *
-findcc(progname)
- const char *progname;
+findcc(const char *progname)
{
char *path, *dir, *next;
char buffer[MAXPATHLEN];
Index: src/usr.bin/mkdep/mkdep.c
diff -u src/usr.bin/mkdep/mkdep.c:1.39 src/usr.bin/mkdep/mkdep.c:1.40
--- src/usr.bin/mkdep/mkdep.c:1.39 Thu Jun 30 20:09:42 2011
+++ src/usr.bin/mkdep/mkdep.c Sun Sep 4 20:30:06 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: mkdep.c,v 1.39 2011/06/30 20:09:42 wiz Exp $ */
+/* $NetBSD: mkdep.c,v 1.40 2011/09/04 20:30:06 joerg Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
#if !defined(lint)
__COPYRIGHT("@(#) Copyright (c) 1999 The NetBSD Foundation, Inc.\
All rights reserved.");
-__RCSID("$NetBSD: mkdep.c,v 1.39 2011/06/30 20:09:42 wiz Exp $");
+__RCSID("$NetBSD: mkdep.c,v 1.40 2011/09/04 20:30:06 joerg Exp $");
#endif /* not lint */
#include <sys/mman.h>
@@ -72,8 +72,8 @@
} suff_list_t;
/* tree of includes for -o processing */
-opt_t *opt;
-int width;
+static opt_t *opt;
+static int width;
#define DEFAULT_PATH _PATH_DEFPATH
#define DEFAULT_FILENAME ".depend"
@@ -81,14 +81,13 @@
static void save_for_optional(const char *, const char *);
static int write_optional(int, opt_t *, int);
-
static inline void *
deconst(const void *p)
{
return (const char *)p - (const char *)0 + (char *)0;
}
-static void
+__dead static void
usage(void)
{
(void)fprintf(stderr,