Commit 04948a34 authored by Anthony Foiani's avatar Anthony Foiani Committed by Greg Kroah-Hartman

staging: usbip: clean up checkpatch warnings in usbipd.c

A few whitespace changes allows the file to pass checkpatch --strict
(other than ignoring the CamelCase derived from the USB standard.)
Signed-Off-By: default avatarAnthony Foiani <anthony.foiani@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 334ab072
...@@ -53,18 +53,18 @@ ...@@ -53,18 +53,18 @@
static const char usbip_version_string[] = PACKAGE_STRING; static const char usbip_version_string[] = PACKAGE_STRING;
static const char usbipd_help_string[] = static const char usbipd_help_string[] =
"usage: usbipd [options] \n" "usage: usbipd [options]\n"
" -D, --daemon \n" " -D, --daemon\n"
" Run as a daemon process. \n" " Run as a daemon process.\n"
" \n" "\n"
" -d, --debug \n" " -d, --debug\n"
" Print debugging information. \n" " Print debugging information.\n"
" \n" "\n"
" -h, --help \n" " -h, --help\n"
" Print this help. \n" " Print this help.\n"
" \n" "\n"
" -v, --version \n" " -v, --version\n"
" Show version. \n"; " Show version.\n";
static void usbipd_help(void) static void usbipd_help(void)
{ {
...@@ -286,13 +286,13 @@ static int do_accept(int listenfd) ...@@ -286,13 +286,13 @@ static int do_accept(int listenfd)
memset(&ss, 0, sizeof(ss)); memset(&ss, 0, sizeof(ss));
connfd = accept(listenfd, (struct sockaddr *) &ss, &len); connfd = accept(listenfd, (struct sockaddr *)&ss, &len);
if (connfd < 0) { if (connfd < 0) {
err("failed to accept connection"); err("failed to accept connection");
return -1; return -1;
} }
rc = getnameinfo((struct sockaddr *) &ss, len, host, sizeof(host), rc = getnameinfo((struct sockaddr *)&ss, len, host, sizeof(host),
port, sizeof(port), NI_NUMERICHOST | NI_NUMERICSERV); port, sizeof(port), NI_NUMERICHOST | NI_NUMERICSERV);
if (rc) if (rc)
err("getnameinfo: %s", gai_strerror(rc)); err("getnameinfo: %s", gai_strerror(rc));
...@@ -496,9 +496,10 @@ static int do_standalone_mode(int daemonize) ...@@ -496,9 +496,10 @@ static int do_standalone_mode(int daemonize)
process_request(sockfdlist[i]); process_request(sockfdlist[i]);
} }
} }
} else } else {
dbg("heartbeat timeout on ppoll()"); dbg("heartbeat timeout on ppoll()");
} }
}
info("shutting down " PROGNAME); info("shutting down " PROGNAME);
free(fds); free(fds);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment