From dd9abb8fc4260a60d1b5772be3df4a618a444923 Mon Sep 17 00:00:00 2001 From: Wichert Akkerman Date: Sat, 21 Apr 2001 23:49:48 +0000 Subject: [PATCH] No longer use deprecated multi-line string literal --- ChangeLog | 5 +++ utils/start-stop-daemon.c | 71 +++++++++++++++++++-------------------- 2 files changed, 40 insertions(+), 36 deletions(-) diff --git a/ChangeLog b/ChangeLog index f44c5acc..fea1506d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Apr 22 01:45:25 CEST 2001 Wichert Akkerman + + * utils/start-stop-daemon.c: no longer use deprecated multi-line string + * utils/md5sum.c: include stdlib.h to get declaration of exit + Sat Apr 21 18:00:31 CDT 2001 Adam Heath * main/main.c: reworked \\ parsing in commandfd. diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c index 26882095..44b5d126 100644 --- a/utils/start-stop-daemon.c +++ b/utils/start-stop-daemon.c @@ -247,42 +247,41 @@ clear(struct pid_list **list) static void do_help(void) { - printf("\ -start-stop-daemon for Debian GNU/Linux - small and fast C version written by\n\ -Marek Michalkiewicz , public domain.\n" -VERSION "\n\ -\n\ -Usage: - start-stop-daemon -S|--start options ... -- arguments ...\n\ - start-stop-daemon -K|--stop options ...\n\ - start-stop-daemon -H|--help\n\ - start-stop-daemon -V|--version\n\ -\n\ -Options (at least one of --exec|--pidfile|--user is required): - -x|--exec program to start/check if it is running\n\ - -p|--pidfile pid file to check\n\ - -c|--chuid - change to this user/group before starting process\n\ - -u|--user | stop processes owned by this user\n\ - -n|--name stop processes with this name\n\ - -s|--signal signal to send (default TERM)\n\ - -a|--startas program to start (default is )\n\ - -N|--nicelevel add incr to the process's nice level\n\ - -b|--background force the process to detach\n\ - -m|--make-pidfile create the pidfile before starting\n\ - -R|--retry check whether processes die, and retry\n\ - -t|--test test mode, don't do anything\n\ - -o|--oknodo exit status 0 (not 1) if nothing done\n\ - -q|--quiet be more quiet\n\ - -v|--verbose be more verbose\n\ -Retry is |//... where is one of - -|[-] send that signal - wait that many seconds - forever repeat remainder forever -or may be just , meaning //KILL/ -\n\ -Exit status: 0 = done 1 = nothing done (=> 0 if --oknodo) - 3 = trouble 2 = with --retry, processes wouldn't die\n"); + printf( +"start-stop-daemon VERSION for Debian - small and fast C version written by\n" +"Marek Michalkiewicz , public domain.\n" +"\n" +"Usage:\n" +" start-stop-daemon -S|--start options ... -- arguments ...\n" +" start-stop-daemon -K|--stop options ...\n" +" start-stop-daemon -H|--help\n" +" start-stop-daemon -V|--version\n" +"\n" +"Options (at least one of --exec|--pidfile|--user is required):\n" +" -x|--exec program to start/check if it is running\n" +" -p|--pidfile pid file to check\n" +" -c|--chuid \n" +" change to this user/group before starting process\n" +" -u|--user | stop processes owned by this user\n" +" -n|--name stop processes with this name\n" +" -s|--signal signal to send (default TERM)\n" +" -a|--startas program to start (default is )\n" +" -N|--nicelevel add incr to the process's nice level\n" +" -b|--background force the process to detach\n" +" -m|--make-pidfile create the pidfile before starting\n" +" -R|--retry check whether processes die, and retry\n" +" -t|--test test mode, don't do anything\n" +" -o|--oknodo exit status 0 (not 1) if nothing done\n" +" -q|--quiet be more quiet\n" +" -v|--verbose be more verbose\n" +"Retry is |//... where is one of\n" +" -|[-] send that signal\n" +" wait that many seconds\n" +" forever repeat remainder forever\n" +"or may be just , meaning //KILL/\n" +"\n" +"Exit status: 0 = done 1 = nothing done (=> 0 if --oknodo)\n" +" 3 = trouble 2 = with --retry, processes wouldn't die\n"); } -- 2.39.5