FreeBSD compiler warning fix
This commit is contained in:
parent
2f54beb5fe
commit
56947d530e
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ static int seatd_connect(void) {
|
|||
union {
|
||||
struct sockaddr_un unix;
|
||||
struct sockaddr generic;
|
||||
} addr = {0};
|
||||
} addr = {{0}};
|
||||
int fd = socket(AF_UNIX, SOCK_STREAM, 0);
|
||||
if (fd == -1) {
|
||||
return -1;
|
||||
|
|
|
@ -187,7 +187,7 @@ int server_listen(struct server *server, const char *path) {
|
|||
union {
|
||||
struct sockaddr_un unix;
|
||||
struct sockaddr generic;
|
||||
} addr = {0};
|
||||
} addr = {{0}};
|
||||
int fd = socket(AF_UNIX, SOCK_STREAM, 0);
|
||||
if (fd == -1) {
|
||||
log_errorf("could not create socket: %s", strerror(errno));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue