server: Fix symbol was not declared and using plain integer as NULL pointer sparse warnings.
This commit is contained in:
parent
903f686899
commit
f12f8503a3
|
@ -451,8 +451,8 @@ struct inode {
|
||||||
char *name; /* basename name of the inode */
|
char *name; /* basename name of the inode */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct list inode_hash[ HASH_SIZE ];
|
static struct list inode_hash[ HASH_SIZE ];
|
||||||
struct list wd_hash[ HASH_SIZE ];
|
static struct list wd_hash[ HASH_SIZE ];
|
||||||
|
|
||||||
static int inotify_add_dir( char *path, unsigned int filter );
|
static int inotify_add_dir( char *path, unsigned int filter );
|
||||||
|
|
||||||
|
|
|
@ -65,14 +65,14 @@ static void parse_args( int argc, char *argv[] )
|
||||||
|
|
||||||
static struct option long_options[] =
|
static struct option long_options[] =
|
||||||
{
|
{
|
||||||
{"debug", 2, 0, 'd'},
|
{"debug", 2, NULL, 'd'},
|
||||||
{"foreground", 0, 0, 'f'},
|
{"foreground", 0, NULL, 'f'},
|
||||||
{"help", 0, 0, 'h'},
|
{"help", 0, NULL, 'h'},
|
||||||
{"kill", 2, 0, 'k'},
|
{"kill", 2, NULL, 'k'},
|
||||||
{"persistent", 2, 0, 'p'},
|
{"persistent", 2, NULL, 'p'},
|
||||||
{"version", 0, 0, 'v'},
|
{"version", 0, NULL, 'v'},
|
||||||
{"wait", 0, 0, 'w'},
|
{"wait", 0, NULL, 'w'},
|
||||||
{ NULL, 0, 0, 0}
|
{ NULL, 0, NULL, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
server_argv0 = argv[0];
|
server_argv0 = argv[0];
|
||||||
|
|
Loading…
Reference in New Issue