mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-24 04:55:54 +00:00
Fix compile error
This commit is contained in:
parent
6f9cf490dc
commit
39325e0262
@ -72,7 +72,7 @@ int monitor_socket_name(struct sockaddr_un *name){
|
||||
/* Use abstract namespace as Android has no writable FS which supports sockets.
|
||||
Abstract namespace is just plain better, anyway, as no dead files end up
|
||||
hanging around. */
|
||||
name.sun_path[0]=0;
|
||||
name->sun_path[0] = '\0';
|
||||
/* XXX: 104 comes from OSX sys/un.h - no #define (note Linux has UNIX_PATH_MAX and it's 108(!)) */
|
||||
snprintf(&name->sun_path[1],104-2,
|
||||
confValueGet("monitor.socket",DEFAULT_MONITOR_SOCKET_NAME));
|
||||
|
Loading…
x
Reference in New Issue
Block a user