hyousatsu
f0123efa84
Fix some warnings.
2024-07-21 00:43:27 +00:00
Jon Trulson
35360f9900
Revert "dtcalc: Change the prototype of matherr() to reflect actual usage and remove warnings."
...
This reverts commit a9175c896d .
This is the wrong fix for matherr() troubles.
2021-12-17 15:19:07 -07:00
Peter Howkins
9f8dbf6a6c
dtcalc: Remove more 'extern' variables in .c files, by putting them in .h. Also reduce scope of vars and funcs with static.
2021-11-25 04:29:25 +00:00
Peter Howkins
a9175c896d
dtcalc: Change the prototype of matherr() to reflect actual usage and remove warnings.
2021-11-25 03:09:45 +00:00
Peter Howkins
aef196c6ca
dtcalc: remove some pointless macroing of function names to uppercase versionss
2020-11-26 23:00:18 +00:00
wmoxam
d380b0fac6
Remove legacysun code blocks
2019-10-14 15:54:33 -06:00
chase
33d2749ea3
Last of the spelling fixed
2018-04-28 12:36:44 -06:00
chase
1fe5a550b2
Fix typo in license headers
2018-04-28 12:30:20 -06:00
Jon Trulson
ff3cd78ac0
dtcalc: Coverity (memory corruption, moderate)
2014-12-26 16:17:43 -07:00
Peter Tribble
468d576030
initial illumos port
2014-03-22 16:33:11 -06:00
Peter Howkins
ea96eb624d
dtcalc: Resolve 82 warnings causing by enabling -Wall
2012-11-20 14:49:40 +00:00
Peter Howkins
f4339cd58e
dtcalc: Convert functions from K&R to ansi declarations.
2012-11-16 17:03:10 +00:00
Peter Howkins
a0da2db479
dtcalc: Resolve 43 warnings that would be introduced with -Wunused-variable or -Wall
...
Basically 43 local variables declared in functions and then never used.
2012-11-05 16:44:29 +00:00
Peter Howkins
20c107bce2
dtcalc: Resolve "format not a string literal and no format arguments [-Wformat-security]" warnings.
...
Fix warnings related to secruity concerns on varargs functions. By specifying
"%s" on single string calls to sprintf() (and related) it's not possible to
have a % in the input string causing random data to be read off the stack.
2012-08-22 11:28:36 +01:00
Pascal Stumpf
0bbd4ff9aa
Get rid of malloc.h.
...
This is a non-POSIX/ISO-C header. It is ok to include this on Linux, but it
is obsolete on BSD; FreeBSD even throws an error if you include it with
__STDC__ defined. Every system should nowadays have malloc() defined in
stdlib.h.
Diff is largely mechanical, replacing malloc.h with stdlib.h where it is not
yet included anyway.
2012-08-12 14:20:58 -06:00
Peter Howkins
697c1522fb
dtcalc: warning prevention, do not use NULL when you mean 0.
2012-08-09 12:07:53 +01:00
Peter Howkins
c884521619
Add GNU LGPL headers to all .c .C and .h files
2012-03-10 18:58:32 +00:00
Peter Howkins
83b6996daa
Initial import of the CDE 2.1.30 sources from the Open Group.
2012-03-10 18:21:40 +00:00