Commit Graph

2234 Commits

Author SHA1 Message Date
mikel
6e9797c617 set WARNS?=1 1997-09-20 05:51:40 +00:00
mikel
f08412063c update for use with WARNS=1:
- use <sys/cdefs.h> __COPYRIGHT() and __RCSID() macros
- add parens and main() prototype to shut up gcc -Wall
also replace {,r}index() with str{,r}chr(), nuke 'register', and
  otherwise KNFify and clean up
1997-09-20 05:50:45 +00:00
mikel
28cd33c439 xref syslog(3) not nonexistent syslog(8) 1997-09-20 05:24:36 +00:00
lukem
87f4122c62 * cleanup for WARNS=1
* deprecate register
* rindex -> strrchr
* fix .Nm usage
1997-09-15 10:58:35 +00:00
lukem
87453d32bd Fixes from Todd Miller <Todd.Miller@courtesan.com>:
* use size_t instead of int in places
* use symbolic constants when using access()
1997-09-13 09:05:52 +00:00
mikel
37c88d8964 resize a pathname buffer to MAXPATHLEN; from Matthias Scheler in PR 4101 1997-09-10 07:13:51 +00:00
drochner
44280f34ac enable WARNS 1997-09-09 11:07:43 +00:00
drochner
5145a54834 -fix error message for nonexistent key
- -Wall fixes
1997-09-09 11:06:31 +00:00
agc
b69f871588 Bump number of elements in specials array from 100 to 1000.
Typedefs are added to this array, and it silently ignores
any attempts to enter more elements when the array is full.
1997-09-09 09:28:19 +00:00
jtc
5b466bef97 Changed order of STANDARDS and HISTORY subheads to conform with
specification in mdoc(7).
1997-09-09 07:26:02 +00:00
mrg
2703290213 add -g flag: do not show non real name gecos info. 1997-09-09 02:41:06 +00:00
mrg
8e81f950a4 Ensure that option processing is complete before externally supplied
arguments are passed to sendmail.
1997-08-28 08:13:41 +00:00
thorpej
a73d0efd45 Enhancements from Ty Sarna <tsarna@endicor.com>, per PR #3935. Allow
user to:
- get entries from a file other than "calendar".
- get entries for a different date than today.
- get entries for a whole week in advance, or only one day.
1997-08-26 19:58:10 +00:00
thorpej
a436ba4f68 Change an instance of a time_t to a (more appropriate) off_t, PR #4037,
enami tsugutomo.
1997-08-26 18:52:13 +00:00
kleink
66105c37fc Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
use SEEK_SET/SEEK_CUR/SEEK_END instead.
1997-08-25 19:31:43 +00:00
augustss
4d52119684 Don't try opening the device O_RDWR. 1997-08-25 19:03:12 +00:00
kleink
6b71fbbcbe Add reference to nice(1). 1997-08-25 16:43:47 +00:00
kleink
8287c17d78 Add references to [gs]etpriority(2). 1997-08-25 16:42:36 +00:00
mikel
cc3132afa3 set WARNS?=1 1997-08-25 06:43:02 +00:00
mikel
58d8fb4ee7 sync usage string with manpage
use <sys/cdefs.h> __RCSID() and __COPYRIGHT() macros
fix prototypes and add parens for gcc -Wall
1997-08-25 06:42:19 +00:00
augustss
ad6d4eb815 Print class correctly for linked fields. 1997-08-24 23:20:04 +00:00
kleink
e021da65e2 * Fix compiler warnings
* Style: lseek(2) L_SET vs. SEEK_SET; getopt(3) EOF vs. -1
1997-08-24 13:57:54 +00:00
drochner
3cb8fe8b6b Fix compiler warnings (because new prototypes came into scope
with latest "rpc.h" changes). It's -Wall ready now.
1997-08-24 10:53:16 +00:00
lukem
fa55e11566 * sanitize long output, fixing buffer overflows whilst doing so
* clean up for WARNS?=1
1997-08-24 02:40:40 +00:00
lukem
64c651fb96 support $TMPDIR 1997-08-23 07:32:50 +00:00
jonathan
3153b91d91 Add elf32 for mips.
(probably  doesn't work,  due to GP-register-relative relocs.)
1997-08-20 01:21:37 +00:00
mycroft
3110c7add1 Various changes to keep up with krb5, mostly addition of the kcontext
structure.  From PR 3826, by Chris Jones.
1997-08-19 17:26:13 +00:00
augustss
653833821e Change to use /dev/audioctl. 1997-08-18 21:35:26 +00:00
lukem
2fec2a28f5 bugs fixed:
* don't interpret '-' or '|' when a local filename is determined from
  the remote name (i.e, in mget, and in get with only one argument).
  This is implemented using an extra argument to recvrequest().
  Fixes a major security hole.
* clean up memory leak when using globulize()
* clean up a couple of comments
* fix wording in TNF copyright

features added:
* support for TIS fwtk gate-ftp servers:
	* read defaults from $FTPSERVER && $FTPSERVERPORT
	* start in gate-ftp mode if invoked as 'gate-ftp'
	* toggle or set with 'gate [host [port]]'
1997-08-18 10:20:13 +00:00
lukem
049da32c75 * add functionality to `force password change at next login'. to use,
set the pw_change field of the user to -1 (defined in <pwd.h> as
  _PASSWORD_CHGNOW). based on [bin/936] by Simon Gerraty <sjg@quick.com.au>
* clean up for WARNS?=1
1997-08-16 13:50:43 +00:00
fair
80b4ae52e8 fix PR#3278, add some other dates taken from historical sources available on the web 1997-08-14 11:28:07 +00:00
mikel
7b94178928 include <unistd.h> for prototypes and cleanup unused variables; from
Enami Tsugutomo in PR bin/3972.
while I'm here, sort #includes according to KNF.
1997-08-12 06:07:23 +00:00
fair
7493d7febf add shlock 1997-08-10 04:10:27 +00:00
hannken
dd99907a60 Get rid of compiler warning:
`warning: `cmp' might be used uninitialized in this function'.
1997-08-08 11:08:10 +00:00
fair
611f2c3b46 program to make lock files for shell scripts 1997-08-06 00:38:11 +00:00
jeremy
ebf4cbfe8e Major re-write.
Resolves some outstanding ambiguities and documents the tolerances of uuencode
and uudecode.  [PR/3268]
1997-08-03 08:51:33 +00:00
perry
88a54d8a99 1) RCSid police
2) Add __RCSIDs where apropriate.
3) WARNS=1, and clean up sources for WARNS=1 (including replacement of
   a mktemp with a mkstemp even though it was probably safe...)
4) Some other small cosmetic changes
1997-08-02 21:30:05 +00:00
perry
7de054cd87 add crunch, and re-sort/format SUBDIR 1997-08-02 20:39:48 +00:00
mikel
c106897e5e add 'atalk' to list of arguments recognized by -f, minor cleanup 1997-08-01 05:03:14 +00:00
mikel
e578379504 minor cleanup 1997-08-01 04:37:36 +00:00
mikel
19dd0c6f4e set WARNS?=1 1997-08-01 04:33:03 +00:00
mikel
2c00d4fdb3 make exit codes match manpage
use <sys/cdefs.h> __COPYRIGHT and __RCSID macros, prototype main()
1997-08-01 04:32:44 +00:00
mikel
fdf1615bca fix typo 1997-08-01 04:31:04 +00:00
phil
27984d173e Set appropiate flag when wanting to skip a patch. Fixes only true
bug reported in PR 2215.
1997-07-29 19:49:35 +00:00
augustss
f18d1df87b Modernize for new audio features. 1997-07-27 01:28:04 +00:00
perry
9f1056ccbf Major modernization.
1) register variables have been killed, except for the ones in the
   generated skeleton (which should probably also be killed soon).
2) __P(())ified prototypes for all functions.
3) new style __RCSID's, and #include <sys/cdefs.h>'s.
4) all warnings generated with WARNS=1 (i.e. all warnings you get from
   gcc with -Wall -Wstrict-prototypes -Wmissing-prototypes) have been
   fixed, although not always in the best possible way.

in particular on #4, in a couple of places I got "control reaches end
of non-void function" errors, and sadly __dead doesn't seem to really
work, so I inserted a couple of exit() calls in strategic
places. These should be nuked if someone can get __dead to Do The
Right Thing.

There were also a couple of places where "while (foo = bar)" things
cropped up and I didn't do the best conceivable thing, but I usually
did.

These fixes should probably go back to the byacc maintainers.
1997-07-25 16:46:27 +00:00
mikel
0a3628b2c3 initialize variables for gcc -Wall (marked XXX)
compare getopt() result to -1, not EOF
1997-07-25 06:40:32 +00:00
mikel
2aa6b3b7a4 make comparison to NULL explicit (gcc -Wall) 1997-07-25 06:38:02 +00:00
mikel
f89e3ed737 include <err.h> and <stdlib.h> for prototypes
give pw_yp() an explicit type
1997-07-25 06:37:27 +00:00
mikel
2a1157114b add prototypes for check_yppasswdd() and pw_yp() 1997-07-25 06:36:02 +00:00