mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-11-23 06:59:55 -05:00
ld10k1: fix various gcc warnings
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
2420b2a6df
commit
90c2aa2639
6 changed files with 15 additions and 18 deletions
|
|
@ -77,7 +77,7 @@ void error(const char *fmt, ...)
|
|||
va_end(va);
|
||||
}
|
||||
|
||||
static void log(const char *fmt, ...)
|
||||
static void alog(const char *fmt, ...)
|
||||
{
|
||||
va_list va;
|
||||
|
||||
|
|
@ -116,7 +116,7 @@ static void cleanup()
|
|||
{
|
||||
if (pidpath[0])
|
||||
unlink(pidpath);
|
||||
log("Exiting daemon");
|
||||
alog("Exiting daemon");
|
||||
}
|
||||
|
||||
static void term_handler(int i)
|
||||
|
|
@ -247,7 +247,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
pidfile = fopen(pidpath, "wt");
|
||||
if (!pidfile) {
|
||||
log("%s: pidfile (%s)\n", strerror(errno), pidpath);
|
||||
alog("%s: pidfile (%s)\n", strerror(errno), pidpath);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
@ -263,7 +263,7 @@ int main(int argc, char *argv[])
|
|||
dup2(fileno(logfile), fileno(stdout));
|
||||
}
|
||||
|
||||
log("Starting daemon");
|
||||
alog("Starting daemon");
|
||||
}
|
||||
|
||||
params.type = uses_pipe ? COMM_TYPE_LOCAL : COMM_TYPE_IP;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue