- Timestamp:
- Mar 14, 2006, 2:42:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/openpam_readline.c
r320 r380 53 53 openpam_readline(FILE *f, int *lineno, size_t *lenp) 54 54 { 55 unsignedchar *line;55 char *line; 56 56 size_t len, size; 57 57 int ch; … … 64 64 #define line_putch(ch) do { \ 65 65 if (len >= size - 1) { \ 66 unsignedchar *tmp = realloc(line, size *= 2); \66 char *tmp = realloc(line, size *= 2); \ 67 67 if (tmp == NULL) \ 68 68 goto fail; \ … … 84 84 if (ch == EOF) { 85 85 /* remove trailing whitespace */ 86 while (len > 0 && isspace( line[len - 1]))86 while (len > 0 && isspace((int)line[len - 1])) 87 87 --len; 88 88 line[len] = '\0'; … … 97 97 98 98 /* remove trailing whitespace */ 99 while (len > 0 && isspace( line[len - 1]))99 while (len > 0 && isspace((int)line[len - 1])) 100 100 --len; 101 101 line[len] = '\0';
Note: See TracChangeset
for help on using the changeset viewer.