mirror of
https://github.com/vale981/bspwm
synced 2025-03-04 17:31:39 -05:00
Fix GCC warnings
This commit is contained in:
parent
89d3cd8a0e
commit
f0558346b2
1 changed files with 3 additions and 1 deletions
|
@ -128,7 +128,9 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
sock_address.sun_family = AF_UNIX;
|
||||
snprintf(sock_address.sun_path, sizeof(sock_address.sun_path), "%s", socket_path);
|
||||
if (snprintf(sock_address.sun_path, sizeof(sock_address.sun_path), "%s", socket_path) < 0) {
|
||||
err("Couldn't write the socket path.\n");
|
||||
}
|
||||
|
||||
sock_fd = socket(AF_UNIX, SOCK_STREAM, 0);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue