summaryrefslogtreecommitdiffstats
path: root/src/aeswepd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/aeswepd.c')
-rw-r--r--src/aeswepd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/aeswepd.c b/src/aeswepd.c
index 684b224..d144977 100644
--- a/src/aeswepd.c
+++ b/src/aeswepd.c
@@ -376,14 +376,14 @@ void parse_args(int argc, char *argv[]) {
break;
case 't':
if ((rekey_time = atoi(optarg)) <= 0) {
- fprintf(stderr, "Rekey time too short.\n");
+ daemon_log(LOG_ERR, "Rekey time too short.\n");
exit(1);
}
break;
case 'm':
n_max_keys = atoi(optarg);
if (n_max_keys <= 0 || n_max_keys > 4) {
- fprintf(stderr, "--max-keys has to be between 1 and 4\n");
+ daemon_log(LOG_ERR, "--max-keys has to be between 1 and 4\n");
exit(1);
}
break;
@@ -454,7 +454,7 @@ void parse_args(int argc, char *argv[]) {
}
default:
- fprintf(stderr, "Unknown parameter.\n");
+ daemon_log(LOG_ERR, "Unknown parameter.\n");
exit(1);
}
}