summaryrefslogtreecommitdiffstats
path: root/caesar/caesar.c
Commit message (Collapse)AuthorAgeFilesLines
* caesar: WARNS=6, strict bool moderillig2021-05-051-6/+6
| | | | | The rotation is validated to be nonnegative, therefore use unsigned int for it.
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* Simplify error checking.christos2005-11-191-7/+9
|
* Replaced one instance of err() with errx(), as the value of errno might notrillig2005-11-191-3/+3
| | | be correct at that time.
* Removed the unnecessary #include <ctype.h>.rillig2005-10-181-3/+2
|
* Added an empty line to conform to KNF.rillig2005-10-081-2/+3
|
* Aligned the usage message from the program with the one mentioned in therillig2005-07-221-3/+3
| | | man page.
* - caesar(6) is not a SETGIDGAME, so we don't need to revoke any privileges.rillig2005-07-221-56/+71
| | | | | | | | - replaced direct POSIX read/write with stdio, which made the code simpler. - added even more error checking. - restructured the code to make each function fit on one screen (well, except one). - now the code reflects the intended purpose of the program. - return 0 instead of EXIT_FAILURE on success.
* * fixed <ctype> bugsrillig2005-05-231-66/+106
| | | | | | | | | * removed ASCII dependency * added input data validation * added bounds checking * added error checking * handle short reads (from pipes or sockets) correctly when trying to decode an encoded stream * added lint(1) directives
* Remove uses of __P.jsm2004-01-271-4/+4
|
* Make dot and winnerdot of type double. Patch from Jan Vornbergerjsm2004-01-011-3/+4
| | | <jan@uos.de> in Debian bug 197816.
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-7/+3
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Use setgid(), not setregid().mycroft2000-05-081-3/+3
|
* Use err(1, NULL) and warn(NULL) for `out of memory' error messages.jsm2000-01-091-3/+3
|
* Add use of `const' where appropriate to the games.jsm1999-09-081-4/+4
| | | | | | | | | This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Some such changes were previously covered in PRs bin/6041, bin/6146, bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994, bin/8039, bin/8057 and bin/8093.
* Drop setgid privs early, via OpenBSDhubertf1999-07-211-2/+5
| | | Reported in PR 5970 by Joseph Myers <jsm@octomino.demon.co.uk>
* mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-3/+3
|
* minor KNFifylukem1997-10-111-18/+11
|
* WARNSifylukem1997-10-101-12/+20
|
* Removed "extern int errno"; Added #include <errno.h> if not already present.jtc1996-02-061-3/+3
|
* clean up importcgd1995-03-211-7/+12
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+154