mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-07 11:08:36 +00:00
Silence 'status unused' compiler warning
This commit is contained in:
parent
49aec4d331
commit
8ec2fe53d4
@ -783,7 +783,7 @@ int app_server_stop(int argc, const char *const *argv, struct command_line_optio
|
||||
cli_puts(instancepath);
|
||||
cli_delim("\n");
|
||||
int pid=-1;
|
||||
int status=server_probe(&pid);
|
||||
server_probe(&pid);
|
||||
if (pid<0) pid = server_pid();
|
||||
// If there is no pidfile, then there is no server process to stop.
|
||||
if (pid <= 0)
|
||||
@ -838,7 +838,6 @@ int app_server_status(int argc, const char *const *argv, struct command_line_opt
|
||||
return -1;
|
||||
int pid=-1;
|
||||
int status=server_probe(&pid);
|
||||
|
||||
cli_puts("instancepath");
|
||||
cli_delim(":");
|
||||
cli_puts(serval_instancepath());
|
||||
|
@ -715,7 +715,7 @@ int server_probe(int *pid)
|
||||
snprintf(&addr.sun_path[1],100,"org.servalproject.servald.monitor.socket");
|
||||
int len = 1+strlen(&addr.sun_path[1]) + sizeof(addr.sun_family);
|
||||
char *p=(char *)&addr;
|
||||
printf("last char='%c' %02x\n",p[len-1],p[len-1]);
|
||||
if (0) DEBUGF("last char='%c' %02x\n",p[len-1],p[len-1]);
|
||||
|
||||
if (connect(fd, (struct sockaddr*)&addr, len) == -1) {
|
||||
close(fd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user