Commit Graph

2245 Commits

Author SHA1 Message Date
Jim Meyering efc6e85c74 . 2001-12-10 00:17:05 +00:00
Jim Meyering a988aefd03 Remove explicit declarations of xmalloc and xrealloc,
Instead, include "xalloc.h".
(initbuffer): Don't cast xmalloc return value to char*.
(readline): Reword comment.
Don't cast xrealloc return value to char*
Return NULL, not 0.
2001-12-10 00:13:36 +00:00
Jim Meyering a49772f23b *** empty log message *** 2001-12-09 22:57:15 +00:00
Jim Meyering ea1f6ec04b *** empty log message *** 2001-12-09 22:56:52 +00:00
Jim Meyering 0b072ba82c (posix_time_parse): Add cast to avoid warning about
`signed and unsigned type in conditional expression'.
2001-12-09 22:56:16 +00:00
Jim Meyering 0928d79889 (mode_compile): Add cast to avoid warning about
`signed and unsigned type in conditional expression'.
2001-12-09 22:54:19 +00:00
Jim Meyering 6994cb9650 (xreadlink): Add cast to avoid a warning. 2001-12-09 22:46:53 +00:00
Jim Meyering 5b34b167f9 (readtoken): Declare an index to be of type unsigned
to avoid a pedantic warning.
2001-12-09 22:39:02 +00:00
Jim Meyering 923091ff96 Don't include assert.h.
(getstr): Remove warning-evoking assertions.
Return -1 if offset parameter is out of bounds.
Change the type of a local from int to size_t.
2001-12-09 22:08:19 +00:00
Jim Meyering 26061de96f (my_strftime_localtime_r): Include this function
definition in the `#if ! HAVE_TM_GMTOFF' block.
2001-12-09 21:02:43 +00:00
Jim Meyering 102ad5c8ff *** empty log message *** 2001-12-09 21:01:23 +00:00
Jim Meyering bb0d2464f8 Remove declarations of xmalloc and xrealloc.
Include xalloc.h instead.
2001-12-09 21:01:15 +00:00
Jim Meyering dcfb371a6b tweak to align with libc 2001-12-08 06:57:58 +00:00
Jim Meyering 15295aaf8a *** empty log message *** 2001-12-02 19:59:49 +00:00
Jim Meyering 4542868aea Don't declare getenv, thus reverting the change of 2001-11-18.
It's no longer necessary, now that stdlib.h is always included.
2001-12-02 19:59:39 +00:00
Jim Meyering 86eb6a1aac *** empty log message *** 2001-12-02 17:47:01 +00:00
Jim Meyering 4a2b55cc60 [!__BOUNDED_POINTERS__]: Define away __bounded, __unbounded, and __ptrvalue. 2001-12-02 17:46:54 +00:00
Jim Meyering 7c8e0d8c97 *** empty log message *** 2001-11-30 14:51:13 +00:00
Jim Meyering b0b791399d Include xalloc.h, so that xstrdup is declared before being defined. 2001-11-30 14:32:22 +00:00
Jim Meyering 6dd490fa03 . 2001-11-28 14:05:29 +00:00
Jim Meyering dec4961f11 *** empty log message *** 2001-11-28 06:57:33 +00:00
Jim Meyering ff927371bd (quotearg_n, quotearg_n_style):
First arg is int, not unsigned.
2001-11-28 06:57:25 +00:00
Jim Meyering 0dc8754559 (quotearg_n, quotearg_n_style): Likewise.
(SIZE_MAX, UINT_MAX): New macros.
(quotearg_n_options): Abort if N is negative.
Avoid overflow check on hosts where size_t is 64 bits and int
is 32 bits, as overflow is impossible there.
Fix off-by-one typo that caused unnecessary reallocation.
2001-11-28 06:57:02 +00:00
Jim Meyering fb66999103 Merge with version from libc. 2001-11-27 21:34:15 +00:00
Jim Meyering 51cd0868f5 *** empty log message *** 2001-11-27 12:56:20 +00:00
Jim Meyering 65d5eb615d Include stdlib.h unconditionally. On some old systems for which
STDC_HEADERS is 0, it was not included, resulting in a warning
about an integer-to-pointer conversion problem with getenv.
2001-11-27 12:55:16 +00:00
Jim Meyering 0bb8253d33 Merge with version from libc. 2001-11-27 12:54:58 +00:00
Jim Meyering b0c1bd7cb5 (libfetish_a_SOURCES): Remove gtod.h. 2001-11-27 10:25:52 +00:00
Jim Meyering 2bb262fd64 *** empty log message *** 2001-11-26 12:31:12 +00:00
Jim Meyering 225d614f6f Don't include gtod.h.
(GTOD_init): Remove function.
(rpl_gettimeofday): Do its job here instead, rather than aborting.
2001-11-26 12:29:43 +00:00
Jim Meyering 3cfa2e263a . 2001-11-26 12:08:16 +00:00
Jim Meyering 2e55f17398 *** empty log message *** 2001-11-23 08:11:49 +00:00
Jim Meyering e38b3095cb (struct hash_table): Don't define here. Merely declare it. 2001-11-23 08:09:31 +00:00
Jim Meyering c759590c03 (struct hash_table): Define it here instead. 2001-11-23 08:09:14 +00:00
Jim Meyering 554f8ec02f . 2001-11-22 10:58:01 +00:00
Jim Meyering 2bcf0bd3f3 Bracket contents of file with #ifndef HASH_H_ ... #endif. 2001-11-22 10:38:49 +00:00
Jim Meyering 23b0d345e9 remove a harmless newline 2001-11-19 13:33:50 +00:00
Jim Meyering d3caacdc49 (Makefile): Depend on $(BUILT_SOURCES), so those
files will be created before anything else.
2001-11-19 13:33:26 +00:00
Jim Meyering 63821aae49 *** empty log message *** 2001-11-19 13:32:29 +00:00
Jim Meyering 500578e250 (mode_adjust): Fix error introduced on 1999-04-26
that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
rather than group writable.  Patch by Juan F. Codagnone.
2001-11-19 13:32:23 +00:00
Jim Meyering 0fdba7fb2a *** empty log message *** 2001-11-19 11:06:38 +00:00
Jim Meyering 81ca387201 (TMP_MAX): Remove; no longer needed.
(TEMPORARIES): New macro.
(__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
removes an artificial limitation (e.g. HP-UX 10.20, where
TMP_MAX is 17576).
2001-11-19 11:06:32 +00:00
Jim Meyering 2ce61398ce . 2001-11-18 17:59:36 +00:00
Jim Meyering 2e9825b4e7 *** empty log message *** 2001-11-18 10:55:55 +00:00
Jim Meyering c89f42f5b7 *** empty log message *** 2001-11-18 10:55:26 +00:00
Jim Meyering 16aa74d9d2 [!HAVE_DECL_GETENV]: Declare getenv to avoid warning on SunOS4. 2001-11-18 10:54:42 +00:00
Jim Meyering c59588ce72 . 2001-11-17 23:43:36 +00:00
Jim Meyering bd9d31c3f0 *** empty log message *** 2001-11-17 13:51:40 +00:00
Jim Meyering 13d08934ba Remove explicit declarations of xmalloc and xrealloc,
Instead, include "xalloc.h".
2001-11-17 13:51:34 +00:00
Jim Meyering b150c16ebc Include unlocked-io.h after all system headers.
Remove explicit declarations of xmalloc, xrealloc,
and xstrdup.  Instead, include "xalloc.h".
2001-11-17 13:50:40 +00:00