From c23d2d644f1ef116822fa418a2971a55c87210a7 Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Thu, 13 Jun 2013 21:22:58 -0400 Subject: [PATCH] minor typo and format fixes --- server/fwknopd.c | 2 +- server/replay_cache.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/server/fwknopd.c b/server/fwknopd.c index 66389b09..c3ce9415 100644 --- a/server/fwknopd.c +++ b/server/fwknopd.c @@ -209,7 +209,7 @@ main(int argc, char **argv) */ if(get_running_pid(&opts) != getpid()) { - /* If foreground mode is not set, the fork off and become a daemon. + /* If foreground mode is not set, then fork off and become a daemon. * Otherwise, attempt to get the pid file lock and go on. */ if(opts.foreground == 0) diff --git a/server/replay_cache.c b/server/replay_cache.c index 43b27149..76279cad 100644 --- a/server/replay_cache.c +++ b/server/replay_cache.c @@ -262,7 +262,9 @@ replay_file_cache_init(fko_srv_options_t *opts) /* the file does not exist yet, so it will be created when the first * successful SPA packet digest is written to disk */ - digest_file_fd = open(opts->config[CONF_DIGEST_FILE], O_WRONLY|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR); + digest_file_fd = open(opts->config[CONF_DIGEST_FILE], + O_WRONLY|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR); + if (digest_file_fd == -1) { log_msg(LOG_WARNING, "Could not create digest cache: %s: %s",