projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NEWS update.
[paraslash.git]
/
recv.c
diff --git
a/recv.c
b/recv.c
index d1909f25a6b288f0801fad4c095fd768e38041de..55e97f1e49ed6248ec415598d95762ee9f3f82fa 100644
(file)
--- a/
recv.c
+++ b/
recv.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2005-200
7
Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-200
8
Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
@@
-48,7
+48,7
@@
static void *parse_config(int argc, char *argv[], int *receiver_num)
static void rn_event_handler(struct task *t)
{
struct receiver_node *rn = t->private_data;
static void rn_event_handler(struct task *t)
{
struct receiver_node *rn = t->private_data;
- PARA_NOTICE_LOG("%s\n",
PARA_STRERROR
(-t->ret));
+ PARA_NOTICE_LOG("%s\n",
para_strerror
(-t->ret));
rn->error = t->ret;
unregister_task(t);
}
rn->error = t->ret;
unregister_task(t);
}
@@
-81,7
+81,7
@@
int main(int argc, char *argv[])
ret = -E_RECV_SYNTAX;
rn.conf = parse_config(argc, argv, &receiver_num);
if (!rn.conf) {
ret = -E_RECV_SYNTAX;
rn.conf = parse_config(argc, argv, &receiver_num);
if (!rn.conf) {
- PARA_EMERG_LOG("
%s", "
parse failed\n");
+ PARA_EMERG_LOG("parse failed\n");
goto out;
}
r = &receivers[receiver_num];
goto out;
}
r = &receivers[receiver_num];
@@
-111,6
+111,6
@@
out:
if (r)
r->shutdown();
if (ret < 0)
if (r)
r->shutdown();
if (ret < 0)
- PARA_ERROR_LOG("%s\n",
PARA_STRERROR
(-ret));
+ PARA_ERROR_LOG("%s\n",
para_strerror
(-ret));
return ret < 0? EXIT_FAILURE : EXIT_SUCCESS;
}
return ret < 0? EXIT_FAILURE : EXIT_SUCCESS;
}