/*
* Exit codes
*/
-
+/*@-exitarg@*/
#define E_OKAY 0
#define E_USAGE 1
#define E_BAD_ENTRY 2
* Tell the user this entire line is bogus and ask
* them to delete it.
*/
- puts (_("invalid group file entry"));
+ (void) puts (_("invalid group file entry"));
printf (_("delete line '%s'? "), gre->line);
*errors += 1;
* Tell the user this entry is a duplicate of
* another and ask them to delete it.
*/
- puts (_("duplicate group entry"));
+ (void) puts (_("duplicate group entry"));
printf (_("delete line '%s'? "), gre->line);
*errors += 1;
if (is_shadow) {
sgr = (struct sgrp *) sgr_locate (grp->gr_name);
if (sgr == NULL) {
- printf (_
- ("no matching group file entry in %s\n"),
+ printf (_("no matching group file entry in %s\n"),
sgr_file);
- printf (_("add group '%s' in %s?"),
+ printf (_("add group '%s' in %s? "),
grp->gr_name, sgr_file);
*errors += 1;
if (yes_or_no (read_only)) {
* Tell the user this entire line is bogus and ask
* them to delete it.
*/
- puts (_("invalid shadow group file entry"));
+ (void) puts (_("invalid shadow group file entry"));
printf (_("delete line '%s'? "), sge->line);
*errors += 1;
* Tell the user this entry is a duplicate of
* another and ask them to delete it.
*/
- puts (_("duplicate shadow group entry"));
+ (void) puts (_("duplicate shadow group entry"));
printf (_("delete line '%s'? "), sge->line);
*errors += 1;
* Tell the user what we did and exit.
*/
if (0 != errors) {
- printf (changed ?
- _("%s: the files have been updated\n") :
- _("%s: no changes\n"), Prog);
+ if (changed) {
+ printf (_("%s: the files have been updated\n"), Prog);
+ } else {
+ printf (_("%s: no changes\n"), Prog);
+ }
}
- exit ((0 != errors) ? E_BAD_ENTRY : E_OKAY);
+ return ((0 != errors) ? E_BAD_ENTRY : E_OKAY);
}