Commit Graph

47 Commits

Author SHA1 Message Date
dholland 2b2d4bc113 On LP64 platforms, uid_t is not the same size as u_long, so the key
comparison function being given to db was comparing 4 extra bytes of
rubbish.

This may or may not be the *only* source of the corrupted
/var/account/usracct files I've been seeing occasionally on amd64, but
it's clearly *a* source.
2010-08-30 02:49:17 +00:00
dholland 3e9fa0fcf5 sprinkle some const 2010-06-10 06:28:33 +00:00
dholland 109bd3a98e ANSIfy function declarations 2010-06-10 06:17:21 +00:00
dholland 0857145886 de-__P() 2010-06-10 06:09:10 +00:00
drochner 5fbc003349 ANSIfy partially 2009-11-17 18:37:45 +00:00
lukem 103ca7bc06 Fix issue I introduced in WARNS=4 -- addition of extra argument to default argv.
Found & fixed by Geoff Wing.
2009-04-28 08:32:56 +00:00
lukem 46a41907e1 Fix WARNS=4 issues (-Wcast-qual -Wsign-compare).
XXX: could improve parsing of -v option and store "cutoff" as a uint64_t.
2009-04-18 13:37:04 +00:00
lukem 9c1945664c Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 13:36:57 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
dsl 9122339b9f Add (unsigned char) cast to ctype functions 2004-10-30 15:39:39 +00:00
wiz d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
wiz f582138c1b Uppercase CPU. 2004-02-13 10:11:56 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
grant cacf2d0f45 s/netbsd.org/NetBSD.org/i 2003-11-12 13:31:07 +00:00
itojun a82a0d12e2 realloc pedant 2003-09-19 06:22:03 +00:00
martin 562ced8429 Don't cast (dubious) values to pointers, only to memcpy from them to
a properly aligned structure. Memcpy from the original data instead.
This fixes PR port-sparc64/21425.
2003-05-02 15:15:52 +00:00
grant 806593a806 The correct capitalisation of 'NetBSD.org' is (you
guessed it) 'NetBSD.org'.

some mdoc fixes.
2003-02-14 16:11:34 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz d71cd67ba6 Sort sections and SEE ALSO, correct markup for AUTHORS section. 2002-02-02 01:48:08 +00:00
wiz a2d753e3ef Whitespace nits. 2002-01-19 11:44:57 +00:00
wiz a9356936b4 seperate -> separate 2001-07-22 13:33:58 +00:00
cgd c2bdafab79 use getprogname() 2001-02-20 23:51:59 +00:00
lukem c2aa46e7c2 use %ll_ instead of the less standard %q_ 2001-01-05 03:27:26 +00:00
christos d9737d6850 - detect duplicate keys when initializing the database. abort if too many
duplicate keys are found indicating a corrupted database (avoids problem
  where sa would loop forever).
- add open flags and mode in dbopen in case someone wants to debug...
2000-07-29 19:15:40 +00:00
christos d04a051588 remove unused debugging variable 2000-07-29 19:13:34 +00:00
christos 272ef31d3b declare formatting function. 2000-07-29 19:12:48 +00:00
christos b834536a8d - read file using stdio
- knf
- add usage function
- add DBT formatting function used for diagnostics
2000-07-29 19:12:17 +00:00
cgd db755e7c76 sweep of my licenses (userland files w/o only my copyright) for
consistency.  (no functional changes)
2000-06-14 17:24:02 +00:00
cgd d220ca5ba3 fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well.  No functional changes.
2000-06-14 06:48:47 +00:00
pk 1cd395375d 1, 2, 3 and.. 4! 1999-04-06 20:24:37 +00:00
garbled d1407362ba More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:43:46 +00:00
ross b1934d6034 {} fixes from Erik Bertelsen <erik@erik-be.uni-c.dk> (PR 6047) to shut up egcs. 1998-08-27 20:31:00 +00:00
perry 34a98169f0 macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:54:12 +00:00
lukem 0e3b290810 fix .Nx usage (use 1.0 instead of 0.9a, etc), and other minor cleanups 1997-11-24 06:28:50 +00:00
mrg a62207fee8 fix compile warnings on the alpha. 1997-10-19 09:56:10 +00:00
lukem 149f1867d1 rcsid fascism 1997-10-18 04:36:50 +00:00
lukem dc0e957a43 WARNSify 1997-10-18 03:54:00 +00:00
mikel 31cff31e63 use correct name for default accounting file; from Hubert Feyrer in
PR bin/4063.
1997-09-01 23:32:45 +00:00
mark 3e43cc032f Use an integer instead of a char to store the getopt() return value in
order to match the function prototype and to work with compilers that
default to unsigned chars.
1996-03-30 23:51:42 +00:00
cgd 06b20eca85 need string.h 1995-04-24 13:25:55 +00:00
phil ce01c21e6d remove one "the" in a "the the". 1995-04-07 18:44:43 +00:00
mycroft dd94184a46 Remove uses of some deprecated functions. 1995-03-22 15:56:29 +00:00
mycroft 7f3235feb5 Use Peter's original (more sane) patch for the previous. 1995-03-22 15:49:18 +00:00
pk 1953a19a36 Take care of alignment; reported by Peter Svensson. 1995-03-08 21:38:59 +00:00
cgd 7a5208fcc2 header, for protos 1994-12-23 16:46:17 +00:00
cgd d8806814a6 specify man pages the new way. 1994-12-22 11:32:57 +00:00
cgd 0b6d07eca8 add my 'sa' 1994-03-24 18:41:48 +00:00