aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-04-01 09:24:40 (GMT)
committerGerd Hoffmann <kraxel@redhat.com>2010-04-01 09:24:40 (GMT)
commite99e58b6d385a8ae806a97b88ec4dbb26c898619 (patch)
tree0abfa3103a07f01938548f1881f32e58079316d9 /common
parent602289d4a5303d666ae9eda87fb12c0ea0225c13 (diff)
v3.82
Diffstat (limited to 'common')
-rw-r--r--common/frequencies.c5
-rw-r--r--common/lirc.c3
2 files changed, 4 insertions, 4 deletions
diff --git a/common/frequencies.c b/common/frequencies.c
index 25f1a72..1c95832 100644
--- a/common/frequencies.c
+++ b/common/frequencies.c
@@ -116,15 +116,14 @@ static int freq_readlist(struct CHANLIST **list, int n, char *name)
continue;
}
- if (1 == sscanf(line," freq = %255[^\n]",value)) {
+ if (1 == sscanf(line," freq = %255[^\n]", value)) {
/* freq = */
(*list)[n-1].freq = atoi(value);
continue;
}
/* Huh ? */
- fprintf(stderr,"%s:%d: syntax error\n",
- DATADIR "/Index.map",nr);
+ fprintf(stderr,"%s:%d: syntax error\n", filename, nr);
}
return n;
}
diff --git a/common/lirc.c b/common/lirc.c
index ad7545e..63f4d73 100644
--- a/common/lirc.c
+++ b/common/lirc.c
@@ -98,7 +98,8 @@ int lirc_tv_init()
config = NULL;
}
if (debug)
- fprintf(stderr, "lirc: ~/.lircrc file %sfound\n", config?"":"not ");
+ fprintf(stderr, "lirc: ~/.lircrc file %sfound\n",
+ config ? "" : "not ");
fcntl(fd,F_SETFL,O_NONBLOCK);
fcntl(fd,F_SETFD,FD_CLOEXEC);

Privacy Policy