From: Jean-Philippe Orsini Date: Sun, 13 May 2012 09:23:38 +0000 (+0000) Subject: updated to new version of checkpatch.pl X-Git-Tag: v0.8.0.5~325 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=9778708a42a62ccef47d955619ea7bba6775e52a updated to new version of checkpatch.pl --- diff --git a/src/server/server.c b/src/server/server.c index f344ab8..25e4d27 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -48,6 +48,9 @@ static const char *DEFAULT_LOG_FILE = "/var/log/psensor-server.log"; +#define HTML_STOP_REQUESTED \ +(_("

Server stop requested

")) + static const char *program_name; #define DEFAULT_PORT 3131 @@ -86,8 +89,8 @@ void print_help() { printf(_("Usage: %s [OPTION]...\n"), program_name); - puts(_("psensor-server is an HTTP server " - "for monitoring hardware sensors remotely.")); + puts(_("psensor-server is an HTTP server for monitoring hardware " + "sensors remotely.")); puts(""); puts("Options:"); @@ -99,10 +102,9 @@ void print_help() " -w,--wdir=DIR directory containing webserver pages")); puts(""); - puts(_(" -d, --debug=LEVEL " + puts(_(" -d, --debug=LEVEL " "set the debug level, integer between 0 and 3")); - puts(_(" -l, --log-file=PATH " - "set the log file to PATH")); + puts(_(" -l, --log-file=PATH set the log file to PATH")); puts(""); printf(_("Report bugs to: %s\n"), PACKAGE_BUGREPORT); @@ -176,8 +178,7 @@ create_response_api(const char *nurl, } else if (!strcmp(nurl, URL_API_1_0_SERVER_STOP)) { server_stop_requested = 1; - page = strdup(_("

" - "Server stop requested

")); + page = strdup(HTML_STOP_REQUESTED); } if (page) {