aboutsummaryrefslogtreecommitdiff
path: root/miscutils/devfsd.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-11-27 16:49:31 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-11-27 16:49:31 +0000
commit079f8afa0a16112cbaf7012c82b38b7358b82141 (patch)
tree0d8cba8e45b1a8b975e0b8c7a8377703ab5547a6 /miscutils/devfsd.c
parent10d0d4eec7e3a292917f43f72afae20341d9ba11 (diff)
downloadbusybox-w32-079f8afa0a16112cbaf7012c82b38b7358b82141.tar.gz
busybox-w32-079f8afa0a16112cbaf7012c82b38b7358b82141.tar.bz2
busybox-w32-079f8afa0a16112cbaf7012c82b38b7358b82141.zip
style cleanup: return(a) -> return a, part 1
Diffstat (limited to 'miscutils/devfsd.c')
-rw-r--r--miscutils/devfsd.c18
1 files changed, 8 insertions, 10 deletions
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)
1254 1254
1255 if(ENABLE_DEVFSD_VERBOSE) 1255 if(ENABLE_DEVFSD_VERBOSE)
1256 msg_logger(LOG_ERR,"unknown %s: %s, defaulting to %cid=0", msg, string, msg[0]); 1256 msg_logger(LOG_ERR,"unknown %s: %s, defaulting to %cid=0", msg, string, msg[0]);
1257 return (0); 1257 return 0;
1258}/* End Function get_uid_gid */ 1258}/* End Function get_uid_gid */
1259 1259
1260static mode_t get_mode (const char *string) 1260static mode_t get_mode (const char *string)
@@ -1321,7 +1321,7 @@ static const char *get_variable (const char *variable, void *info)
1321 if( i >= 0 && i <= 3) 1321 if( i >= 0 && i <= 3)
1322 { 1322 {
1323 debug_msg_logger(LOG_INFO, "%s: i=%d %s", __FUNCTION__, i ,field_names[i+7]); 1323 debug_msg_logger(LOG_INFO, "%s: i=%d %s", __FUNCTION__, i ,field_names[i+7]);
1324 return(field_names[i+7]); 1324 return field_names[i+7];
1325 } 1325 }
1326 1326
1327 if(i == 4 ) 1327 if(i == 4 )
@@ -1417,17 +1417,15 @@ static int mksymlink (const char *oldpath, const char *newpath)
1417 debug_msg_logger(LOG_INFO, __FUNCTION__); 1417 debug_msg_logger(LOG_INFO, __FUNCTION__);
1418 1418
1419 if ( !make_dir_tree (newpath) ) 1419 if ( !make_dir_tree (newpath) )
1420 return (-1); 1420 return -1;
1421 1421
1422 if (symlink (oldpath, newpath) != 0) 1422 if (symlink (oldpath, newpath) != 0) {
1423 { 1423 if (errno != EEXIST) {
1424 if (errno != EEXIST)
1425 {
1426 debug_msg_logger(LOG_ERR, "%s: %s to %s: %m", __FUNCTION__, oldpath, newpath); 1424 debug_msg_logger(LOG_ERR, "%s: %s to %s: %m", __FUNCTION__, oldpath, newpath);
1427 return (-1); 1425 return -1;
1428 } 1426 }
1429 } 1427 }
1430 return (0); 1428 return 0;
1431} /* End Function mksymlink */ 1429} /* End Function mksymlink */
1432 1430
1433 1431
@@ -1444,7 +1442,7 @@ static int make_dir_tree (const char *path)
1444 debug_msg_logger(LOG_ERR, "%s: %s: %m",__FUNCTION__, path); 1442 debug_msg_logger(LOG_ERR, "%s: %s: %m",__FUNCTION__, path);
1445 return (FALSE); 1443 return (FALSE);
1446 } 1444 }
1447 return(TRUE); 1445 return TRUE;
1448} /* End Function make_dir_tree */ 1446} /* End Function make_dir_tree */
1449 1447
1450static int expand_expression(char *output, unsigned int outsize, 1448static int expand_expression(char *output, unsigned int outsize,