dholland
431304b3b0
remove unnecessary cast
2009-08-27 00:22:28 +00:00
dholland
e0ba63fe83
sprinkle static
2009-08-12 05:48:04 +00:00
dholland
b76cf716a9
Don't use a FILE * after fclose(). PR 41832 from Henning Petersen.
2009-08-06 17:55:18 +00:00
lukem
2fe2731d3f
Remove the \n and tabs from the __COPYRIGHT() strings.
2008-07-20 00:52:39 +00:00
dholland
16e3bec279
Clarify how one is supposed to use the pointers returned by getutentries()
...
(the utmpentry.c code), specifically with respect to who owns them and
when to free them. Now they're owned by utmpentry.c, only. Abolish the
freeutentries() function, which was the wrong abstraction; add instead
endutentries(), which flushes out the internally managed memory.
Update callers as necessary. Some (e.g. talkd) had been leaking memory;
others (e.g. syslogd) had been accidentally freeing and reloading utmp
more often than necessary. There are a couple untidy bits in users and
rwhod that someone should look after sometime, maybe.
Fixes PR bin/35131, which was about talkd's memory leak.
2008-07-13 20:07:48 +00:00
perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
dan
f96b430610
read config more strictly, from Maximillian Dornseif
2006-05-25 07:11:54 +00:00
jmc
4f50e1e42e
KNF conversion
2005-07-02 08:35:29 +00:00
dsl
49f7d8a9b1
Add (unsigned char) cast to ctype functions
2004-11-05 21:30:31 +00:00
jsm
10b61a7cca
Mark unused parameters, nonreturning functions and format functions in
...
the few cases not already marked.
2004-02-08 22:23:50 +00:00
jsm
cb5fd8342e
Remove uses of __P.
2004-01-27 20:30:28 +00:00
agc
e5aeb4ea46
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22269, verified by myself.
2003-08-07 09:36:50 +00:00
christos
346b4189a5
utmpx support.
2002-08-02 03:06:24 +00:00
jdolecek
a30fb66eca
play(): use snprintf() instead of hard-to-parse strncpy() calls
2001-01-25 20:41:41 +00:00
jsm
13f44a1f67
Don't include terminal . in argument of err().
1999-09-22 18:54:42 +00:00
jsm
419fb603c3
Don't include <nlist.h>.
1999-09-22 18:54:03 +00:00
jsm
2e57752a37
Allow dm to ban games playing 11pm-midnight.
...
From OpenBSD.
1999-09-19 18:13:41 +00:00
hubertf
24d3aaa397
Const poisoning.
...
Patch submitted in PR 7993 by Joseph Myers <jsm28@cam.ac.uk>
1999-07-14 22:52:07 +00:00
hubertf
1c9494f62b
mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)
1998-09-13 15:27:25 +00:00
hubertf
5795fc4c70
Make dm ignore TZ; PR#6073 by Joseph Myers <jsm28@cam.ac.uk>
1998-09-13 12:34:43 +00:00
mrg
a3c2805530
minor KNF.
1998-07-04 20:06:55 +00:00
mrg
c1fdab6ca5
remove an old setgid() from when dm(6) was setuid kmem (i assume for getloadavg())
1997-11-19 08:24:09 +00:00
lukem
82090a8bf1
WARNSify
1997-10-10 12:49:45 +00:00
mrg
1741f3a9c7
be safe with buffers.
1997-04-21 11:11:47 +00:00
jtc
5224609738
Removed "extern int errno"; Added #include <errno.h> if not already present.
1996-02-06 22:47:06 +00:00
cgd
101657d110
clean up import
1995-03-21 15:03:38 +00:00
mycroft
8542364e07
Add RCS identifiers.
1993-08-01 18:49:50 +00:00
mycroft
f7f4b85ce9
Cleanup for GCC 2.
1993-04-18 21:52:18 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00