mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed handling the LOG_LOCALn parameters in the -l option
This commit is contained in:
parent
b5f874de0c
commit
d7bf76e9ba
@ -364,6 +364,7 @@ Simon Dean <linux-dvb@sickhack.com>
|
|||||||
|
|
||||||
Dimitrios Dimitrakos <mail@dimitrios.de>
|
Dimitrios Dimitrakos <mail@dimitrios.de>
|
||||||
for translating OSD texts to the Greek language
|
for translating OSD texts to the Greek language
|
||||||
|
for fixing handling the LOG_LOCALn parameters in the -l option
|
||||||
|
|
||||||
Marcus Kuba <marcus@kuba4u.de>
|
Marcus Kuba <marcus@kuba4u.de>
|
||||||
for reporting a bug in the unit of the "SVDRP timeout" setup parameter
|
for reporting a bug in the unit of the "SVDRP timeout" setup parameter
|
||||||
|
2
HISTORY
2
HISTORY
@ -1935,3 +1935,5 @@ Video Disk Recorder Revision History
|
|||||||
- Added/improved Swedish language texts (thanks to Jan Ekholm).
|
- Added/improved Swedish language texts (thanks to Jan Ekholm).
|
||||||
- Fixed the description of the "Scroll pages" OSD setup parameter ('yes' and 'no'
|
- Fixed the description of the "Scroll pages" OSD setup parameter ('yes' and 'no'
|
||||||
were mixed up).
|
were mixed up).
|
||||||
|
- Fixed handling the LOG_LOCALn parameters in the -l option (thanks to Dimitrios
|
||||||
|
Dimitrakos).
|
||||||
|
4
vdr.c
4
vdr.c
@ -22,7 +22,7 @@
|
|||||||
*
|
*
|
||||||
* The project's page is at http://www.cadsoft.de/people/kls/vdr
|
* 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>
|
#include <getopt.h>
|
||||||
@ -160,7 +160,7 @@ int main(int argc, char *argv[])
|
|||||||
if (!p)
|
if (!p)
|
||||||
break;
|
break;
|
||||||
if (isnumber(p + 1)) {
|
if (isnumber(p + 1)) {
|
||||||
int l = atoi(optarg);
|
int l = atoi(p + 1);
|
||||||
if (0 <= l && l <= 7) {
|
if (0 <= l && l <= 7) {
|
||||||
int targets[] = { LOG_LOCAL0, LOG_LOCAL1, LOG_LOCAL2, LOG_LOCAL3, LOG_LOCAL4, LOG_LOCAL5, LOG_LOCAL6, LOG_LOCAL7 };
|
int targets[] = { LOG_LOCAL0, LOG_LOCAL1, LOG_LOCAL2, LOG_LOCAL3, LOG_LOCAL4, LOG_LOCAL5, LOG_LOCAL6, LOG_LOCAL7 };
|
||||||
SysLogTarget = targets[l];
|
SysLogTarget = targets[l];
|
||||||
|
Loading…
Reference in New Issue
Block a user