diff options
author | nick black | 2012-07-07 17:40:45 +0200 |
---|---|---|
committer | nick black | 2012-07-07 17:40:45 +0200 |
commit | 28a47f13d9c33c97279742d83687bff4d79922f4 (patch) | |
tree | a657e6cd6c744895693aeec5ecccdd6ede13982a /libblkid | |
parent | hwclock: don't set time for --systz (diff) | |
download | kernel-qcow2-util-linux-28a47f13d9c33c97279742d83687bff4d79922f4.tar.gz kernel-qcow2-util-linux-28a47f13d9c33c97279742d83687bff4d79922f4.tar.xz kernel-qcow2-util-linux-28a47f13d9c33c97279742d83687bff4d79922f4.zip |
use GCC format __attribute__ on sprinf
Diffstat (limited to 'libblkid')
-rw-r--r-- | libblkid/src/blkidP.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libblkid/src/blkidP.h b/libblkid/src/blkidP.h index 604de3ddb..bceda33b6 100644 --- a/libblkid/src/blkidP.h +++ b/libblkid/src/blkidP.h @@ -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); |