Commit Graph

36 Commits

Author SHA1 Message Date
nia 509d26c5fb csh: replace malloc(x * y) and realloc(x * y) with reallocarray 2024-04-24 15:49:03 +00:00
dholland 7f63690a47 Use the right size for several calloc calls.
When allocating for a Char **, it should use sizeof(Char *), not
sizeof(Char **). This doesn't actually affect the results except
on DS9000 though :-)
2020-08-09 00:34:21 +00:00
dholland 85bd10cb24 Don't cast the value returned from *malloc. No change to compiler output. 2020-08-09 00:22:53 +00:00
joerg e5e328a1f9 Don't depend on common declarations. 2020-04-03 18:11:29 +00:00
christos 1767ce60a2 Welcome to the 21th century csh: retire "ptr_t" now that we have "void *" 2019-01-05 16:54:00 +00:00
maya bd073e6366 Remove Free, s/xfree/free/.
Standard C says that free should be a no-op for a NULL pointer, so
we don't need an extra function to do this.

While here, add an XXX about a wrong sounding comment
2019-01-05 10:51:06 +00:00
christos 37e3924882 WARNS=6 [-Wconversion] 2013-07-16 17:47:43 +00:00
christos b79c2ef26a no need to have cshbool; just make them int 2007-07-16 18:26:09 +00:00
christos ec01a4a425 PR/36650: Michael van Elst: Get rid of bool, because csh uses bool as a small
int.
2007-07-16 14:07:00 +00:00
dogcow 593a9183f0 Rename bool -> cshbool; despite the name, bool actually holds values other
than 0 or 1. Fixes PR/36650.
2007-07-16 02:26:50 +00:00
christos 0346684a3d save the home directory. 2006-04-05 23:10:16 +00:00
christos f3ffb9c969 Coverity CID 1760: Plug memory leak. 2006-03-18 06:54:46 +00:00
christos 6310b59691 sprinkle a little const, and now everything compiles with WARNS=3 2005-06-26 19:10:48 +00:00
christos d24b172c21 avoid overflow in strcpy. 2004-05-10 19:11:31 +00:00
agc b5b2954259 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-08-07 09:05:01 +00:00
provos 32b88027c7 use readlink with bufsize - 1; approved thorpej. 2002-10-19 20:33:17 +00:00
itojun c3ca2a9ab6 calloc() arg mistake. it's (nelem, size). from openbsd 2002-08-12 02:37:26 +00:00
wiz 1815854042 __STDC__ is always defined on NetBSD. 2002-05-25 23:29:16 +00:00
lukem 537f55c6b7 fix WARNS=2 2001-11-03 13:35:39 +00:00
wiz b771e65ba1 ANSIfication and KNF improvements by Petri Koistinen in bin/13689,
with some fixes by me.
2001-09-14 14:03:59 +00:00
is dde594130e Format string auditing by Bill Sommerfeld. 2000-10-08 09:33:31 +00:00
christos 1452d0f916 braces for gcc-2.8.1 1999-03-19 12:56:16 +00:00
mycroft ee9e50eacb Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
mycroft cdbd74da57 Delint (partially). 1998-07-28 02:23:37 +00:00
mycroft 4d669802e4 const propagation. 1998-07-27 15:25:06 +00:00
christos 8ea378c6ac Rename err.h to errnum.h to avoid collision with err.h
Fix compiler warnings.
1997-07-04 21:23:50 +00:00
tls 76adbe2bd3 kill register 1997-01-13 17:53:15 +00:00
cgd 49f0ad8601 convert to new RCS id conventions. 1995-03-21 09:01:59 +00:00
mycroft baccf0fbd1 Eliminate uses of some obsolete functions. 1994-09-23 11:16:28 +00:00
mycroft cee2bad89f Merge 4.4-Lite version. 1994-09-21 00:10:23 +00:00
mycroft 625270ca0f Fix bogus freeing of memory. 1994-07-31 09:23:10 +00:00
mycroft a579b792ce Add RCS identifiers. 1993-08-01 18:59:54 +00:00
cgd 06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd 346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd e541169ce2 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00