Skip to content

Commit

Permalink
use GCC format __attribute__ on sprinf
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jul 7, 2012
1 parent 839be2b commit 28a47f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libblkid/src/blkidP.h
Expand Up @@ -435,8 +435,10 @@ extern int blkid_probe_set_value(blkid_probe pr, const char *name,
unsigned char *data, size_t len);
extern int blkid_probe_vsprintf_value(blkid_probe pr, const char *name,
const char *fmt, va_list ap);
;
extern int blkid_probe_sprintf_value(blkid_probe pr, const char *name,
const char *fmt, ...);
const char *fmt, ...) __attribute__ ((format (printf,3,4)));

extern int blkid_probe_set_magic(blkid_probe pr, blkid_loff_t offset,
size_t len, unsigned char *magic);

Expand Down

0 comments on commit 28a47f1

Please sign in to comment.