aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2017-07-22 17:14:02 -0400
committerJason Woodward2017-07-22 17:14:02 -0400
commit3130e605cb75a4dcf13059e838e41befdf38a703 (patch)
treeadc1b5e7f500d19237033f47e0f1d055154ddd6f /src
parent0d39c089274864959a1c74476da342ec3d3db4d8 (diff)
downloadslapt-get-3130e605cb75a4dcf13059e838e41befdf38a703.tar.gz
src/main.c: add fall through comment in command option switch
Diffstat (limited to 'src')
-rw-r--r--src/main.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index d185639..19fe750 100644
--- a/src/main.c
+++ b/src/main.c
@@ -266,12 +266,12 @@ int main( int argc, char *argv[] )
switch(do_action) {
/* can't simulate update, clean, autoclean, or add keys */
- case CLEAN:
- case AUTOCLEAN:
+ case CLEAN:
+ case AUTOCLEAN:
#ifdef SLAPT_HAS_GPGME
- case ADD_KEYS:
+ case ADD_KEYS:
#endif
- case UPDATE:
+ case UPDATE:
global_config->simulate = SLAPT_FALSE;
break;
@@ -281,6 +281,7 @@ int main( int argc, char *argv[] )
case REMOVE:
if (global_config->remove_obsolete == SLAPT_TRUE)
break;
+ /* fall through */
/* show, search, filelist must have arguments */
case SHOW:
@@ -305,7 +306,7 @@ int main( int argc, char *argv[] )
/* create the working directory if needed */
slapt_working_dir_init(global_config);
- if ((chdir(global_config->working_dir)) == -1) {
+ if ((chdir(global_config->working_dir)) == -1) {
fprintf(stderr,gettext("Failed to chdir: %s\n"),global_config->working_dir);
exit(EXIT_FAILURE);
}