Simplify gpasswd's main():

New functions: open_files(), close_files(), update_group(). Split out
	from main() to simplify this (too) big function.
This commit is contained in:
nekral-guest
2007-12-27 18:52:40 +00:00
parent f429f3e38d
commit 55d581d041
2 changed files with 149 additions and 100 deletions

View File

@@ -6,6 +6,9 @@
* src/gpasswd.c: Document global variables.
* src/gpasswd.c: New function: process_flags(). Split the processing
of options out of main().
* src/gpasswd.c: New functions: open_files(), close_files(),
update_group(). Split out from main() to simplify this (too) big
function.
2007-12-27 Nicolas François <nicolas.francois@centraliens.net>