plunky
acae68523e
reinstate NULL cast by request, where the NULL was being passed as a vararg
2011-09-01 07:18:50 +00:00
plunky
9f61b80465
NULL does not need a cast
2011-08-31 16:24:54 +00:00
jakllsch
2ed951176c
No need to cast double to ubig (aka uintmax_t) through int.
...
This change prevents a modulo by zero in a invocation such as:
primes 18446744073709551000 18446744073709551615
on a LP64 machine.
2011-08-30 02:58:04 +00:00
joerg
4511a017c1
Use __dead
2011-08-29 20:30:36 +00:00
joerg
17834822b6
Mark error() as dead, so that validation for setclipped works correctly.
2011-08-27 23:42:33 +00:00
tron
d504399e17
Avoid non-literal format strings.
2011-08-26 09:01:07 +00:00
dholland
ae56ae8f3f
Use __dead and __printflike instead of __attribute__.
2011-08-26 06:18:16 +00:00
christos
df7b0db034
add printf attributes.
2011-08-25 16:18:28 +00:00
joerg
6e9533bc30
Uses non-literal format strings
2011-08-25 15:50:45 +00:00
plunky
e2bd4b0723
-Wno-shadow is no longer needed for HAVE_PCC, here
2011-08-24 17:39:32 +00:00
christos
a040843f47
use const char [] for format.
2011-08-21 08:50:08 +00:00
dholland
788ec3df53
Remove redundant set of prototypes for local functions, exposed by
...
previous.
2011-08-17 18:17:40 +00:00
dholland
ec10c574c2
Move some things around so declarations appear in a reasonable order.
2011-08-17 18:16:51 +00:00
dholland
667d044909
Use __dead instead of __attribute__((__noreturn__)).
2011-08-16 19:53:03 +00:00
christos
c3a5028162
document non-literal string formats
2011-08-16 11:28:18 +00:00
christos
459966a9ab
avoid non-literal format string
2011-08-16 11:26:16 +00:00
christos
5129f378a4
eliminate/document non-literal format strings
2011-08-16 11:19:41 +00:00
christos
18f6b4214c
eliminate non-literal format strings
2011-08-16 11:14:04 +00:00
christos
aba0d26e70
avoid non-literal format strings.
2011-08-16 11:10:54 +00:00
christos
695bc7fff6
kill homebrew error functions
2011-08-16 11:06:34 +00:00
christos
69c818efb5
document non-literal format strings
2011-08-16 10:14:40 +00:00
christos
72db7ca912
- document non-literal format strings
...
- avoid strict aliasing violations, but adding an intermediate function.
2011-08-16 09:26:22 +00:00
dholland
d5b021c7ed
Fix up some lint.
2011-08-07 06:03:45 +00:00
dholland
2c0ecb1ab6
Fix up still more casts; use NULL instead of (char *)0.
2011-08-06 20:42:43 +00:00
dholland
8041af98f6
Remove *another* set of useless casts. sheesh
2011-08-06 20:32:25 +00:00
dholland
8e73b3ad76
Remove more silly casts.
2011-08-06 20:29:37 +00:00
dholland
5aa2a843dc
drop private (and wrong) definition of NULL
2011-08-06 20:24:35 +00:00
dholland
434d266e91
Use the right type for the malloc wrapper function, and don't cast the
...
return value.
(XXX: Except for a pile of allocation macros that produce typed pointer
results; there the typechecking of the result assignment is more valuable
than the warning if the alloc function isn't declared properly. These
macros should go away.)
2011-08-06 20:18:26 +00:00
dholland
25ec296591
Remove silly casts.
2011-08-06 20:00:33 +00:00
dholland
842dc544ae
<sys/wait.h> is standard, so just use it instead of fiddling about with
...
ifdefs for long-dead systems. While here, remove union wait.
2011-08-06 19:53:24 +00:00
dholland
d30849d1cd
abolish references to index/rindex
2011-08-06 19:47:54 +00:00
dholland
813e3e415d
Remove the PYRAMID_BUG code. I don't think Pyramids are coming back, nor
...
do we care if their compiler vomits trying to decrement a bitfield.
2011-08-06 19:32:58 +00:00
dholland
cbc660deee
Don't refer to index() in comments; use strchr().
2011-08-06 19:23:38 +00:00
dholland
fcfbc606bf
Include system headers before private headers. Avoids various possible
...
symbol conflicts.
2011-07-20 07:04:30 +00:00
mrg
db6886e029
apply some -O0 with gcc 4.5 and vax.
2011-07-03 15:29:34 +00:00
mrg
3206e7e70e
use DBL_MIN from <float.h> instead of a hard coded small value (that
...
becomes zero for vax fp.)
2011-07-03 06:44:01 +00:00
mrg
1a1e24f1e6
include sys/time.h earlier (rather than implicitly via fcntl.h) so that
...
the "u" variable doesn't shadow stuff, found later in time.h inlines.
kind of a hack, but i don't want to modify time.h either.
XXX: seems kind of annoying
2011-07-02 02:10:33 +00:00
mrg
d060781d89
rename a variable from "time" to "stime" (it's a string)
2011-07-02 02:09:08 +00:00
mrg
c111245a78
apply some -Wno-error and/or -fno-strict-aliasing.
...
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
joerg
ab7b7d013a
Use consistent sign in compare, the function is only called with
...
constants as third argument anyway.
2011-05-30 03:11:15 +00:00
joerg
108836d4ba
Map RCSID to __RCSID
2011-05-23 23:06:41 +00:00
joerg
6047230580
ANSIfy
2011-05-23 23:03:38 +00:00
joerg
8f09f5ccbd
Don't use variables as format string.
2011-05-23 23:02:07 +00:00
joerg
6dee362ea8
Kill some pointer indirections. Don't use variables as format strings.
2011-05-23 23:01:17 +00:00
joerg
c112023e0a
ANSIfy
2011-05-23 22:59:27 +00:00
joerg
1a5e0fc9be
#if 0 some unused code.
2011-05-23 22:58:44 +00:00
joerg
7c549d998f
Don't use variables as format string.
2011-05-23 22:56:11 +00:00
joerg
57c13365a3
Correctly print variables as strings, not as format string.
2011-05-23 22:53:25 +00:00
joerg
cbd2e3d54f
Properly print string.
2011-05-23 22:49:59 +00:00
joerg
76266ce815
Don't use variables as format strings.
2011-05-23 22:48:52 +00:00