projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't hardcode srsd as the daemon name, use a define.
[apps/pfixtools.git]
/
srsd.c
diff --git
a/srsd.c
b/srsd.c
index
cd5c125
..
4004c13
100644
(file)
--- a/
srsd.c
+++ b/
srsd.c
@@
-45,6
+45,7
@@
#include "mem.h"
#include "buffer.h"
#include "mem.h"
#include "buffer.h"
+#define DAEMON_NAME "srsd"
#define DEFAULT_ENCODER_PORT 10000
#define DEFAULT_DECODER_PORT 10001
#define __tostr(x) #x
#define DEFAULT_ENCODER_PORT 10000
#define DEFAULT_DECODER_PORT 10001
#define __tostr(x) #x
@@
-165,7
+166,7
@@
int start_listener(int epollfd, int port, bool decoder)
static int main_initialize(void)
{
static int main_initialize(void)
{
- openlog(
"srsd"
, LOG_PID, LOG_MAIL);
+ openlog(
DAEMON_NAME
, LOG_PID, LOG_MAIL);
signal(SIGPIPE, SIG_IGN);
signal(SIGINT, &common_sighandler);
signal(SIGTERM, &common_sighandler);
signal(SIGPIPE, SIG_IGN);
signal(SIGINT, &common_sighandler);
signal(SIGTERM, &common_sighandler);
@@
-185,7
+186,7
@@
module_exit(main_shutdown);
void usage(void)
{
void usage(void)
{
- fputs("usage:
srsd
[ -e <port> ] [ -d <port> ] domain secrets\n"
+ fputs("usage:
"DAEMON_NAME"
[ -e <port> ] [ -d <port> ] domain secrets\n"
"\n"
" -e <port> port to listen to for encoding requests\n"
" (default: "STR(DEFAULT_ENCODER_PORT)")\n"
"\n"
" -e <port> port to listen to for encoding requests\n"
" (default: "STR(DEFAULT_ENCODER_PORT)")\n"