Jim Meyering
88daaaf385
(main): Call make_blank after *all* argument processing.
...
Get rid of blank1, blank2. Just use uni_blank instead.
1995-05-28 19:46:04 +00:00
Jim Meyering
5c08b11b30
Overhaul so -a1 and -a2 (as used in cnews) work.
1995-05-28 18:01:54 +00:00
Jim Meyering
4657b1e9ec
(main): Remove dcl of and statements that set now-unused variable.
1995-05-28 02:04:55 +00:00
Jim Meyering
a528bd5d9f
[!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
...
Without this, SunOS doesn't get type for memchr.
Reported by Kaveh Ghazi.
1995-05-27 11:41:00 +00:00
Jim Meyering
0be7c19204
Remove trailing white space.
1995-05-26 14:15:37 +00:00
Jim Meyering
1bca766a5d
[struct control]: Change type of `repeat' member to unsigned
...
long to avoid conversion warning.
1995-05-25 05:09:50 +00:00
Jim Meyering
a660862d4c
(tail_lines): Change one more long' to off_t'.
...
Otherwise, tail didn't work on NetBSD. From by Arne H. Juul.
1995-05-25 05:09:00 +00:00
Jim Meyering
ee79446888
(usage): Add one or two lines of descriptive text.
1995-05-22 04:30:18 +00:00
Jim Meyering
7f9311c20e
merge with 1.11.1b
1995-05-21 11:44:22 +00:00
Jim Meyering
e8db76575a
(look_up_char_class): Take a string length argument.
...
Use strncmp, not strcmp and verify that string lengths are the same.
(append_char_class): Update caller.
From Andreas Schwab.
1995-05-20 12:08:35 +00:00
Jim Meyering
9918713e5b
(next_file_name): Move dcls of file-scope variables into this function.
...
Don't rely on arithmetic being two's complement.
1995-05-20 11:52:36 +00:00
Jim Meyering
4c9e84124c
[CLOSED, ENDLIST]: Don't cast constants to FILE pointers.
...
Instead, declare two FILE structs and use their addresses.
1995-05-20 11:47:31 +00:00
Jim Meyering
0753cff4a1
(usage): Tweak wording.
1995-05-20 11:41:13 +00:00
Jim Meyering
c253f9ba51
(record_line_starts): Remove set-but-not-used, file-scope variable.
1995-05-19 15:59:40 +00:00
Jim Meyering
635b1b5b6e
(usage): Add one- and two-line descriptions to --help output.
...
From Karl.
1995-05-15 04:53:56 +00:00
Jim Meyering
7cdc7a0bd9
(usage): Include one- or two-line synopsis in --help output.
...
From Karl Berry.
1995-05-13 18:34:54 +00:00
Jim Meyering
99ce9e9832
Use stat (lstat), not safe_stat (safe_lstat).
1995-05-13 12:48:33 +00:00
Jim Meyering
274e5f86b5
Use l?stat, not safe_l?stat.
1995-05-13 02:31:46 +00:00
Jim Meyering
31faa61270
(usage): Remove duplicate descriptions of --help and --version.
...
From Karl Berry.
1995-05-13 02:26:18 +00:00
Jim Meyering
7108d098ae
(movefile): Remove a single trailing slash from destdir before concatenating
...
with `/' and filename for `ok to overwrite...' message.
1995-05-13 02:21:40 +00:00
Jim Meyering
6ebd309cb8
(save_stdin): Don't hard-code /tmp.
...
[DEFAULT_TMPDIR]: Use this instead.
1995-05-05 05:09:58 +00:00
Jim Meyering
a5da850f3f
(main): Use stat, not safe_stat. The latter was unnecessary.
1995-05-05 05:03:50 +00:00
Jim Meyering
04c2f73f6f
Patch from Mike to fix handling of +x.yn.
1995-05-05 04:37:21 +00:00
Jim Meyering
f45ff2cfaf
Don't hard-code /tmp.
...
[DEFAULT_TMPDIR]: Use this instead.
1995-05-05 04:16:12 +00:00
Jim Meyering
70b90a6f9d
(quote_filename): Never return NULL when quoting filenames
...
as C-strings. --quote-name was quoting only strings containing
at least one C-quotable character. Reported by David J. MacKenzie.
1995-05-02 04:04:32 +00:00
Jim Meyering
6d94a2954d
(usage): Fix per kb's suggestions.
1995-04-30 12:57:50 +00:00
Jim Meyering
a3edacb315
(tempname): AND-off high bits of pid so that its decimal
...
string representation is no longer than five digits.
From Hans Verkuil (hans@wyst.hobby.nl )
1995-04-26 16:12:01 +00:00
Jim Meyering
586c892910
(add_tabstop): Give correct size when reallocating tab_list buffer.
...
From Geoff Odhner (geoff@franklin.com ).
1995-04-21 04:12:33 +00:00
Jim Meyering
93b95d2b78
(next_file_name): Don't reuse X as an index.
...
Declare new variable I instead.
1995-04-14 04:29:41 +00:00
Jim Meyering
73daf89227
(write_block): Declare index I as unsigned int, not int.
...
(get_lcm): Likewise.
(dump_strings): Likewise.
(main): Likewise.
(dump): Cast BYTES_PER_BLOCK to off_t in MIN expression.
(dump_strings): Declare bufsize to be of type size_t, not int.
1995-04-14 04:27:46 +00:00
Jim Meyering
9f888b86b8
Remove block of redundant comments describing options.
...
(usage): Remove reference to -l option. It's not valid.
1995-04-14 04:23:22 +00:00
Jim Meyering
09dec6f72f
(fold_file): Declare offset_out size_t.
1995-03-25 21:09:34 +00:00
Jim Meyering
42357adff5
(set_fields): Declare index unsigned.
1995-03-25 21:08:36 +00:00
Jim Meyering
ebaf614a13
Declare as unsigned int' all variables that were just unsigned'.
...
(make_filename): Change type of arg to unsigned int.
(split_file): Change type of indices to unsigned int.
1995-03-24 23:40:41 +00:00
Jim Meyering
80fab638f1
merge with 1.11.e
1995-03-21 03:50:10 +00:00
Jim Meyering
107da866a6
(usage): Add ellipsis after `[OPTION]'.
...
Use FILE, not deprecated PATH. From Karl Berry.
1995-03-21 03:45:15 +00:00
Jim Meyering
b94687cecb
Detect when -N argument is too large to fit in an off_t.
1995-03-16 21:54:02 +00:00
Jim Meyering
1423198343
add 1995 to Copyright dates
1995-03-10 04:15:06 +00:00
Jim Meyering
0d6850348c
add 1995 to Copyright dates
1995-03-09 22:33:05 +00:00
Jim Meyering
eba8aab7f2
add 1995 to Copyright dates
1995-03-09 22:20:59 +00:00
Jim Meyering
40f6e92067
(wc): oops. Add missing dcl of stats.
1995-02-28 12:50:35 +00:00
Jim Meyering
9ac5e4ef97
(color_indicator[0]): Add missing `['.
1995-02-27 16:37:54 +00:00
Jim Meyering
e9c2895a55
(userid_compare): K&R'ify function definition.
1995-02-27 14:47:40 +00:00
Jim Meyering
30d09ddbed
(correct_password): Use memset instead of bzero.
1995-02-27 14:09:10 +00:00
Jim Meyering
617dbb12c2
(main, set_window_size): Use memset instead of bzero.
1995-02-27 14:07:58 +00:00
Jim Meyering
5d49fcbeaa
Remove \n's from error format strings.
...
(main): Let `seq 1 1' work.
Invoke usage always with 1 when failing.
1995-02-27 14:05:43 +00:00
Jim Meyering
788bd6716f
(docolon): Use memset instead of bzero.
1995-02-27 06:01:27 +00:00
Jim Meyering
829c226954
(batch_convert): Remove any trailing newline from offending
...
line before including it in the `invalid date' error from `date -f'.
Reported by Franc,ois Pinard.
1995-02-27 06:00:14 +00:00
Jim Meyering
06b585059b
(wc): Put back test for S_ISREG. On some systems lseek returns zero for
...
non-regular files (esp ttys on SunOS) even when it fails.
1995-02-27 00:07:35 +00:00
Jim Meyering
6812f61900
(restore_cwd): Test whether fchdir return value is non-zero, not negative.
...
Be consistent!
1995-02-23 21:14:12 +00:00