From b6d8272551435098c716c546a5201206517e5da9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 6 Oct 2015 18:32:19 +0000 Subject: modernize style: "return" is not a function --- compat_mkdtemp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'compat_mkdtemp.c') diff --git a/compat_mkdtemp.c b/compat_mkdtemp.c index cc336e54..1fcb325f 100644 --- a/compat_mkdtemp.c +++ b/compat_mkdtemp.c @@ -6,7 +6,7 @@ int dummy; #else -/* $Id: compat_mkdtemp.c,v 1.1 2015/03/19 14:57:29 schwarze Exp $ */ +/* $Id: compat_mkdtemp.c,v 1.2 2015/10/06 18:32:19 schwarze Exp $ */ /* * Copyright (c) 2015 Ingo Schwarze * @@ -45,17 +45,17 @@ mkdtemp(char *path) for (tries = INT_MAX; tries; tries--) { if (mktemp(path) == NULL) { errno = EEXIST; - return(NULL); + return NULL; } if (mkdir(path, S_IRUSR | S_IWUSR | S_IXUSR) == 0) - return(path); + return path; if (errno != EEXIST) - return(NULL); + return NULL; for (cp = start; *cp != '\0'; cp++) *cp = 'X'; } errno = EEXIST; - return(NULL); + return NULL; } #endif -- cgit v1.2.3-56-ge451