Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/quota Remove stray p in identifier name. This has (a...
details: https://anonhg.NetBSD.org/src/rev/576642d6d776
branches: trunk
changeset: 773266:576642d6d776
user: dholland <dholland%NetBSD.org@localhost>
date: Mon Jan 30 06:14:43 2012 +0000
description:
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.
diffstat:
usr.bin/quota/quotautil.c | 6 +++---
usr.bin/quota/quotautil.h | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r 29f8633e9fea -r 576642d6d776 usr.bin/quota/quotautil.c
--- a/usr.bin/quota/quotautil.c Mon Jan 30 06:04:32 2012 +0000
+++ b/usr.bin/quota/quotautil.c Mon Jan 30 06:14:43 2012 +0000
@@ -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 @@
#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 @@
#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.
diff -r 29f8633e9fea -r 576642d6d776 usr.bin/quota/quotautil.h
--- a/usr.bin/quota/quotautil.h Mon Jan 30 06:04:32 2012 +0000
+++ b/usr.bin/quota/quotautil.h Mon Jan 30 06:14:43 2012 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index