1
1

* file.c (do_transform_source): Cast the argument to functions

for character classification to unsigned int.
* main.c (handle_args): Likewise.
* util.c (size_trunc_sep): Likewise.
(skip_numbers): Likewise.
Этот коммит содержится в:
Pavel Roskin 2002-07-03 19:47:40 +00:00
родитель e385a9c9ab
Коммит 74288460f5
4 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -1,5 +1,11 @@
2002-07-03 Pavel Roskin <proski@gnu.org> 2002-07-03 Pavel Roskin <proski@gnu.org>
* file.c (do_transform_source): Cast the argument to functions
for character classification to unsigned int.
* main.c (handle_args): Likewise.
* util.c (size_trunc_sep): Likewise.
(skip_numbers): Likewise.
* subshell.c (sigchld_handler): Remove subshell_pty from the * subshell.c (sigchld_handler): Remove subshell_pty from the
channel list if the subshell has died. channel list if the subshell has died.

Просмотреть файл

@ -193,7 +193,7 @@ do_transform_source (FileOpContext *ctx, unsigned char *source)
switch (ctx->dest_mask [j]){ switch (ctx->dest_mask [j]){
case '\\': case '\\':
j++; j++;
if (! isdigit (ctx->dest_mask [j])){ if (! isdigit ((unsigned char) ctx->dest_mask [j])){
/* Backslash followed by non-digit */ /* Backslash followed by non-digit */
switch (ctx->dest_mask [j]){ switch (ctx->dest_mask [j]){
case 'U': case 'U':

Просмотреть файл

@ -2497,7 +2497,7 @@ handle_args (int argc, char *argv [])
edit_one_file = ""; edit_one_file = "";
edit_one_file_start_line = 1; edit_one_file_start_line = 1;
if (tmp) { if (tmp) {
if (*tmp == '+' && isdigit (tmp[1])){ if (*tmp == '+' && isdigit ((unsigned char) tmp[1])){
int start_line = atoi (tmp); int start_line = atoi (tmp);
if (start_line > 0) { if (start_line > 0) {
char *file = poptGetArg (ctx); char *file = poptGetArg (ctx);

Просмотреть файл

@ -254,7 +254,7 @@ char *size_trunc_sep (double size)
p += strlen (p) - 1; p += strlen (p) - 1;
d = x + sizeof (x) - 1; d = x + sizeof (x) - 1;
*d-- = 0; *d-- = 0;
while (p >= y && isalpha (*p)) while (p >= y && isalpha ((unsigned char) *p))
*d-- = *p--; *d-- = *p--;
for (count = 0; p >= y; count++){ for (count = 0; p >= y; count++){
if (count == 3){ if (count == 3){
@ -781,7 +781,7 @@ char *skip_separators (char *s)
char *skip_numbers (char *s) char *skip_numbers (char *s)
{ {
for (;*s; s++) for (;*s; s++)
if (!isdigit (*s)) if (!isdigit ((unsigned int) *s))
break; break;
return s; return s;
} }