Simplify gpasswd's main():

Split also get_group() and change_passwd() out of main().
This commit is contained in:
nekral-guest
2007-12-27 21:04:22 +00:00
parent 586181bf71
commit c81bf3e06f
2 changed files with 187 additions and 134 deletions

View File

@@ -9,8 +9,8 @@
* src/gpasswd.c: New functions: open_files(), close_files(),
update_group(). Split out from main() to simplify this (too) big
function.
* src/gpasswd.c: New function: check_perms(). Split out of main() to
simplify main().
* src/gpasswd.c: New functions: check_perms(), get_group(),
change_passwd(). Split out of main() to simplify main().
2007-12-27 Nicolas François <nicolas.francois@centraliens.net>