compile fix for syslogread-0.91

Thilo Bangert <[email protected]>
Newsgroups gmane.comp.sysutils.bgware
Message-ID <[email protected]>
Hi,

i needed to apply the following patch to get syslogread to compile on a 
recent system.

regards
thilo


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
compile-fix.diff (text/x-diff, 1.4 KB)
--- syslogxlate.c.orig	2003-03-24 23:04:30.000000000 +0100
+++ syslogxlate.c	2005-04-12 11:04:47.000000000 +0200
@@ -24,17 +24,17 @@
 static int selected[facility_count][priority_count] = {{0,}};
 
 const char* usage_str =
-"Usage: syslogxlate [-fpx] PRIORITY.FACILITY [PRIORITY.FACILITY...]
-  Selects and translates syslog formatted messages.
-
-  -f  Do not show the facility name or number
-  -p  Do not show the priority name or number
-  -x  Do not translate priority or facility numbers into names
-
-  PRIORITY is one of emerg, alert, crit, err, warning, notice, info, or debug.
-  FACILITY is one of kern, user, mail, daemon, auth, syslog, lpr, news, uucp,
-                     cron, authpriv, ftp, or local0-local7.
-  See the documentation for a detailed explanation of PRIORITY and FACILITY.
+"Usage: syslogxlate [-fpx] PRIORITY.FACILITY [PRIORITY.FACILITY...] \n\
+  Selects and translates syslog formatted messages.\n\
+\n\
+  -f  Do not show the facility name or number \n\
+  -p  Do not show the priority name or number \n\
+  -x  Do not translate priority or facility numbers into names\n\
+\n\
+  PRIORITY is one of emerg, alert, crit, err, warning, notice, info, or debug.\n\
+  FACILITY is one of kern, user, mail, daemon, auth, syslog, lpr, news, uucp,\n\
+                     cron, authpriv, ftp, or local0-local7.\n\
+  See the documentation for a detailed explanation of PRIORITY and FACILITY.\n\
 ";
 
 static int opt_show_facility = 1;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.