From 0cc9c4bbf1f9fad4b13dbc3fc0fe385a8d5802c5 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Tue, 21 Jan 2020 15:44:03 -0800 Subject: [PATCH] Fix up remaining clang-format style issues Signed-off-by: Patrick McCarty --- src/server.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/server.c b/src/server.c index fbfd39d..221e09d 100644 --- a/src/server.c +++ b/src/server.c @@ -28,11 +28,11 @@ #include #include +#include #include #include #include #include -#include #include #include #include @@ -321,7 +321,8 @@ static int curl_get_file(const char *url, const char *prefix, time_t timestamp) } /* test extraction first */ - if (asprintf(&command, "tar -C /var/cache/debuginfo/%s --no-same-owner " + if (asprintf(&command, + "tar -C /var/cache/debuginfo/%s --no-same-owner " "--no-same-permissions -tf %s", prefix, filename) < 0) { @@ -336,7 +337,8 @@ static int curl_get_file(const char *url, const char *prefix, time_t timestamp) } free(command); /* reuse */ - if (asprintf(&command, "tar -C /var/cache/debuginfo/%s --no-same-owner " + if (asprintf(&command, + "tar -C /var/cache/debuginfo/%s --no-same-owner " "--no-same-permissions -xf %s", prefix, filename) < 0) { @@ -543,8 +545,8 @@ int main(__nc_unused__ int argc, __nc_unused__ char **argv) strcpy(sun.sun_path, SOCKET_PATH); ret = bind(sockfd, - (struct sockaddr *)&sun, - offsetof(struct sockaddr_un, sun_path) + strlen(SOCKET_PATH) + 1); + (struct sockaddr *)&sun, + offsetof(struct sockaddr_un, sun_path) + strlen(SOCKET_PATH) + 1); if (ret < 0) { fprintf(stderr, "Failed to bind:%s \n", strerror(errno)); exit(EXIT_FAILURE); @@ -591,7 +593,6 @@ int main(__nc_unused__ int argc, __nc_unused__ char **argv) break; } - clientsock = accept(sockfd, NULL, NULL); /* Too many connections, wait for the next loop/retry */