summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-01-26 11:57:55 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2003-01-26 11:57:55 +0100
commitd7bf76e9ba4dd698bcb3135f7ec46df48d01b28a (patch)
tree6a3bd9a8e2d0b6808ae11393b0bb8aca53a5d522 /vdr.c
parentb5f874de0ca8ed30f8c6e89f604cae2bf8181e0d (diff)
downloadvdr-d7bf76e9ba4dd698bcb3135f7ec46df48d01b28a.tar.gz
vdr-d7bf76e9ba4dd698bcb3135f7ec46df48d01b28a.tar.bz2
Fixed handling the LOG_LOCALn parameters in the -l option
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index 44ed58f0..87550ded 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/people/kls/vdr
*
- * $Id: vdr.c 1.140 2003/01/06 11:14:50 kls Exp $
+ * $Id: vdr.c 1.141 2003/01/26 11:56:31 kls Exp $
*/
#include <getopt.h>
@@ -160,7 +160,7 @@ int main(int argc, char *argv[])
if (!p)
break;
if (isnumber(p + 1)) {
- int l = atoi(optarg);
+ int l = atoi(p + 1);
if (0 <= l && l <= 7) {
int targets[] = { LOG_LOCAL0, LOG_LOCAL1, LOG_LOCAL2, LOG_LOCAL3, LOG_LOCAL4, LOG_LOCAL5, LOG_LOCAL6, LOG_LOCAL7 };
SysLogTarget = targets[l];