]> git.tuebingen.mpg.de Git - paraslash.git/commit
Simplify set_server_start_time().
authorAndre Noll <maan@systemlinux.org>
Thu, 9 Jan 2014 16:57:58 +0000 (16:57 +0000)
committerAndre Noll <maan@systemlinux.org>
Thu, 19 Jun 2014 13:30:22 +0000 (15:30 +0200)
commit2225ff7444175650a0613c8d2f19aebbd2007061
tree7b329d9a3c43ba1c9b803ed7fa407f0dac04fb70
parent612be8a0856eb3c58fef8784f77c7f999d4c9e08
Simplify set_server_start_time().

This function receives a pointer to a timeval structure which is
supposed to contain the daemon startup time. Passing NULL means to
set the daemon startup time to the current time.

There are only two callers of this function, in audiod.c and in
server.c.  The first one passes NULL, the other one initialises the
timeval structure pointed to by the global now pointer to the current
time, and passes this pointer.

It's easier to let set_server_start_time() always act as if NULL had
been passed.
audiod.c
daemon.c
daemon.h
server.c