Clean up some compiler warnings.

* commands.c, commands.h: Use unsigned char for flags.
* dir.c: Use time_t and size_t, and char for a boolean value.
* job.c: Use unsigned and char.
* read.c: Return a signed type since -1 is a valid return code.
This commit is contained in:
Paul Smith
2016-03-07 01:30:21 -05:00
parent fb7a7adc8a
commit 8164c8ab3d
6 changed files with 13 additions and 13 deletions

6
read.c
View File

@@ -2467,7 +2467,7 @@ find_percent_cached (const char **string)
Since we aren't really reading from a file, don't bother with linenumbers.
*/
static unsigned long
static long
readstring (struct ebuffer *ebuf)
{
char *eol;
@@ -3013,12 +3013,12 @@ tilde_expand (const char *name)
PARSEFS_NOCACHE - Do not add filenames to the strcache (caller frees)
*/
void dir_setup_glob (glob_t *glob);
void *
parse_file_seq (char **stringp, unsigned int size, int stopmap,
const char *prefix, int flags)
{
extern void dir_setup_glob (glob_t *glob);
/* tmp points to tmpbuf after the prefix, if any.
tp is the end of the buffer. */
static char *tmpbuf = NULL;