From 7869e8ad05b328edcef9bf856ad358a953c1931a Mon Sep 17 00:00:00 2001 From: Danny Mayer Date: Thu, 22 Nov 2001 03:11:01 +0000 Subject: [PATCH] Braces were missing when isc__strerror was added --- bin/named/win32/os.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bin/named/win32/os.c b/bin/named/win32/os.c index 0757ea0922..d164106cd2 100644 --- a/bin/named/win32/os.c +++ b/bin/named/win32/os.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: os.c,v 1.11 2001/11/21 05:07:23 mayer Exp $ */ +/* $Id: os.c,v 1.12 2001/11/22 03:11:01 mayer Exp $ */ #include #include @@ -177,23 +177,26 @@ ns_os_writepidfile(const char *filename) { return; len = strlen(filename); pidfile = malloc(len + 1); - if (pidfile == NULL) + if (pidfile == NULL) { isc__strerror(errno, strbuf, sizeof(strbuf)); ns_main_earlyfatal("couldn't malloc '%s': %s", filename, strbuf); + } /* This is safe. */ strcpy(pidfile, filename); fd = safe_open(filename, ISC_FALSE); - if (fd < 0) + if (fd < 0) { isc__strerror(errno, strbuf, sizeof(strbuf)); ns_main_earlyfatal("couldn't open pid file '%s': %s", filename, strbuf); + } lockfile = fdopen(fd, "w"); - if (lockfile == NULL) + if (lockfile == NULL) { isc__strerror(errno, strbuf, sizeof(strbuf)); ns_main_earlyfatal("could not fdopen() pid file '%s': %s", filename, strbuf); + } pid = getpid(); if (fprintf(lockfile, "%ld\n", (long)pid) < 0)