libarchive: open_zipped() does not need to check extensions for e.g. gzip
[oweals/busybox.git] / libbb / print_flags.c
index 413f51653db79c0f70af802dd30f8e5bf24ebe94..eaec731e59f55d2b73e84d5dfe0de0ea2ec086c8 100644 (file)
@@ -3,13 +3,12 @@
  *
  * 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 print_flags_separated(const int *masks, const char *labels, int flags, const char *separator)
+int FAST_FUNC print_flags_separated(const int *masks, const char *labels, int flags, const char *separator)
 {
        const char *need_separator = NULL;
        while (*labels) {
@@ -19,14 +18,14 @@ int print_flags_separated(const int *masks, const char *labels, int flags, const
                                labels);
                        need_separator = separator;
                        flags &= ~ *masks;
-                       masks++;
                }
+               masks++;
                labels += strlen(labels) + 1;
        }
        return flags;
 }
 
-int print_flags(const masks_labels_t *ml, int flags)
+int FAST_FUNC print_flags(const masks_labels_t *ml, int flags)
 {
        return print_flags_separated(ml->masks, ml->labels, flags, NULL);
 }