Module Name:    src
Committed By:   dholland
Date:           Mon Jan 30 06:14:43 UTC 2012

Modified Files:
        src/usr.bin/quota: quotautil.c quotautil.h

Log Message:
Remove stray p in identifier name. This has (as far as I can tell)
prevented quotacheck and other old-style quota bits from working since
last March. Use a correct declaration in the header file, so that if
something similar happens again affected programs will fail to link
instead of failing to work.

This kind of nonsense is why I like -Wl,-warn-common.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/quota/quotautil.c
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/quota/quotautil.h

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/quota/quotautil.c
diff -u src/usr.bin/quota/quotautil.c:1.5 src/usr.bin/quota/quotautil.c:1.6
--- src/usr.bin/quota/quotautil.c:1.5	Mon Jan 30 06:02:12 2012
+++ src/usr.bin/quota/quotautil.c	Mon Jan 30 06:14:43 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: quotautil.c,v 1.5 2012/01/30 06:02:12 dholland Exp $ */
+/*	$NetBSD: quotautil.c,v 1.6 2012/01/30 06:14:43 dholland Exp $ */
 
 /*
  * Copyright (c) 1980, 1990, 1993
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
 #if 0
 static char sccsid[] = "@(#)quota.c	8.4 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: quotautil.c,v 1.5 2012/01/30 06:02:12 dholland Exp $");
+__RCSID("$NetBSD: quotautil.c,v 1.6 2012/01/30 06:14:43 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -65,7 +65,7 @@ __RCSID("$NetBSD: quotautil.c,v 1.5 2012
 #include "quotautil.h"
 
 const char *qfextension[] = INITQFNAMES;
-const char *qfnamep = QUOTAFILENAME;
+const char *qfname = QUOTAFILENAME;
  
 /*
  * Check to see if a particular quota is to be enabled.

Index: src/usr.bin/quota/quotautil.h
diff -u src/usr.bin/quota/quotautil.h:1.3 src/usr.bin/quota/quotautil.h:1.4
--- src/usr.bin/quota/quotautil.h:1.3	Thu Mar 24 17:05:46 2011
+++ src/usr.bin/quota/quotautil.h	Mon Jan 30 06:14:43 2012
@@ -1,7 +1,7 @@
-/*	$NetBSD: quotautil.h,v 1.3 2011/03/24 17:05:46 bouyer Exp $ */
+/*	$NetBSD: quotautil.h,v 1.4 2012/01/30 06:14:43 dholland Exp $ */
 
-const char *qfextension[MAXQUOTAS];
-const char *qfname;
+extern const char *qfextension[MAXQUOTAS];
+extern const char *qfname;
 struct fstab;
 int hasquota(char *, size_t, struct fstab *, int);
 int oneof(const char *, char *[], int);

Reply via email to