]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Add format function annotation.
authorJoerg Sonnenberger <joerg@bec.de>
Sun, 26 Feb 2017 14:55:54 +0000 (15:55 +0100)
committerJoerg Sonnenberger <joerg@bec.de>
Sun, 26 Feb 2017 14:55:54 +0000 (15:55 +0100)
tar/bsdtar.h

index ee9c6485fccc8e038d6eddc8ec4da46f1cd34b5f..9c551fc6a49362cbce7cb71604a044ba6368593f 100644 (file)
@@ -189,7 +189,7 @@ void        do_chdir(struct bsdtar *);
 int    edit_pathname(struct bsdtar *, struct archive_entry *);
 int    need_report(void);
 int    pathcmp(const char *a, const char *b);
-void   safe_fprintf(FILE *, const char *fmt, ...);
+void   safe_fprintf(FILE *, const char *fmt, ...) __LA_PRINTF(2, 3);
 void   set_chdir(struct bsdtar *, const char *newdir);
 const char *tar_i64toa(int64_t);
 void   tar_mode_c(struct bsdtar *bsdtar);
@@ -198,7 +198,7 @@ void        tar_mode_t(struct bsdtar *bsdtar);
 void   tar_mode_u(struct bsdtar *bsdtar);
 void   tar_mode_x(struct bsdtar *bsdtar);
 void   usage(void);
-int    yes(const char *fmt, ...);
+int    yes(const char *fmt, ...) __LA_PRINTF(1, 2);
 
 #if defined(HAVE_REGEX_H) || defined(HAVE_PCREPOSIX_H)
 void   add_substitution(struct bsdtar *, const char *);