libarchive: open_zipped() does not need to check extensions for e.g. gzip
[oweals/busybox.git] / libbb / print_flags.c
index a8c4f9c1fa7d666d33858c836790bd20d1fd0660..eaec731e59f55d2b73e84d5dfe0de0ea2ec086c8 100644 (file)
@@ -3,10 +3,9 @@
  *
  * Copyright (C) 2008 Natanael Copa <natanael.copa@gmail.com>
  *
- * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
-
-#include <libbb.h>
+#include "libbb.h"
 
 /* returns a set with the flags not printed */
 int FAST_FUNC print_flags_separated(const int *masks, const char *labels, int flags, const char *separator)
@@ -19,8 +18,8 @@ int FAST_FUNC print_flags_separated(const int *masks, const char *labels, int fl
                                labels);
                        need_separator = separator;
                        flags &= ~ *masks;
-                       masks++;
                }
+               masks++;
                labels += strlen(labels) + 1;
        }
        return flags;