From 079f8afa0a16112cbaf7012c82b38b7358b82141 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 27 Nov 2006 16:49:31 +0000 Subject: style cleanup: return(a) -> return a, part 1 --- miscutils/devfsd.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'miscutils') diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index de046e818..968270fff 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c @@ -1254,7 +1254,7 @@ static int get_uid_gid (int flag, const char *string) if(ENABLE_DEVFSD_VERBOSE) msg_logger(LOG_ERR,"unknown %s: %s, defaulting to %cid=0", msg, string, msg[0]); - return (0); + return 0; }/* End Function get_uid_gid */ static mode_t get_mode (const char *string) @@ -1321,7 +1321,7 @@ static const char *get_variable (const char *variable, void *info) if( i >= 0 && i <= 3) { debug_msg_logger(LOG_INFO, "%s: i=%d %s", __FUNCTION__, i ,field_names[i+7]); - return(field_names[i+7]); + return field_names[i+7]; } if(i == 4 ) @@ -1417,17 +1417,15 @@ static int mksymlink (const char *oldpath, const char *newpath) debug_msg_logger(LOG_INFO, __FUNCTION__); if ( !make_dir_tree (newpath) ) - return (-1); + return -1; - if (symlink (oldpath, newpath) != 0) - { - if (errno != EEXIST) - { + if (symlink (oldpath, newpath) != 0) { + if (errno != EEXIST) { debug_msg_logger(LOG_ERR, "%s: %s to %s: %m", __FUNCTION__, oldpath, newpath); - return (-1); + return -1; } } - return (0); + return 0; } /* End Function mksymlink */ @@ -1444,7 +1442,7 @@ static int make_dir_tree (const char *path) debug_msg_logger(LOG_ERR, "%s: %s: %m",__FUNCTION__, path); return (FALSE); } - return(TRUE); + return TRUE; } /* End Function make_dir_tree */ static int expand_expression(char *output, unsigned int outsize, -- cgit v1.2.3