diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-29 03:33:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-29 03:33:07 +0000 |
commit | 8b38d88e71773246da76871cabd307ec2aabac01 (patch) | |
tree | 82bfa62667c71b53f5dbfcb396e385f53e563922 | |
parent | e7238f65f19bb409091f3dea8c85bc69532d8d84 (diff) |
fix some warnings and errors
-rw-r--r-- | usr.sbin/config/files.c | 6 | ||||
-rw-r--r-- | usr.sbin/config/main.c | 4 | ||||
-rw-r--r-- | usr.sbin/config/sem.c | 3 |
3 files changed, 7 insertions, 6 deletions
diff --git a/usr.sbin/config/files.c b/usr.sbin/config/files.c index ac2f302cf51..0dc14a154a4 100644 --- a/usr.sbin/config/files.c +++ b/usr.sbin/config/files.c @@ -1,4 +1,4 @@ -/* $OpenBSD: files.c,v 1.4 1996/04/21 23:40:09 deraadt Exp $ */ +/* $OpenBSD: files.c,v 1.5 1996/08/29 03:33:05 deraadt Exp $ */ /* $NetBSD: files.c,v 1.6 1996/03/17 13:18:17 cgd Exp $ */ /* @@ -84,6 +84,7 @@ initfiles() unchecked = &allfiles; } +#if 0 static void showprev(pref, fi) const char *pref; @@ -94,6 +95,7 @@ showprev(pref, fi) "%sfile %s ...", pref, fi->fi_path); errors--; } +#endif void addfile(path, optx, flags, rule) @@ -175,7 +177,7 @@ void checkfiles() { register struct files *fi, *last; - register struct nvlist *nv; + /*register struct nvlist *nv;*/ last = NULL; for (fi = *unchecked; fi != NULL; last = fi, fi = fi->fi_next) diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c index c0e4482d74a..82b73f0e2eb 100644 --- a/usr.sbin/config/main.c +++ b/usr.sbin/config/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.4 1996/04/21 23:40:14 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.5 1996/08/29 03:33:06 deraadt Exp $ */ /* $NetBSD: main.c,v 1.17 1996/03/17 11:50:13 cgd Exp $ */ /* @@ -245,7 +245,7 @@ mksymlinks() char *p, buf[200]; p = path("machine"); - (void)sprintf(buf, "../../include", machine); + (void)sprintf(buf, "../../include"); (void)unlink(p); ret = symlink(buf, p); if (ret) diff --git a/usr.sbin/config/sem.c b/usr.sbin/config/sem.c index 60cfb530c9b..40da45265d3 100644 --- a/usr.sbin/config/sem.c +++ b/usr.sbin/config/sem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sem.c,v 1.4 1996/07/07 22:02:21 maja Exp $ */ +/* $OpenBSD: sem.c,v 1.5 1996/08/29 03:33:06 deraadt Exp $ */ /* $NetBSD: sem.c,v 1.8 1996/03/17 21:12:03 cgd Exp $ */ /* @@ -856,7 +856,6 @@ findattachment: if (!hit) panic("adddev: can't figure out attachment"); } -ok: if ((i->i_locs = fixloc(name, attr, loclist)) == NULL) goto bad; if (i->i_unit == STAR && iba->d_vectors != NULL) { |