From: Inaky Perez-Gonzalez <[email protected]>

---
 src/storage.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/storage.h b/src/storage.h
index d74de35..74cbba5 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -30,10 +30,12 @@
 int create_dirs(const char *filename, const mode_t mode);
 
 ssize_t read_file(unsigned char *buffer, size_t len,
-                       const char *path_fmt, ...);
+                       const char *path_fmt, ...)
+       __attribute__((format(printf, 3, 4)));
 
 ssize_t write_file(const unsigned char *buffer, size_t len, mode_t mode,
-                       const char *path_fmt, ...);
+                       const char *path_fmt, ...)
+       __attribute__((format(printf, 4, 5)));
 
 GKeyFile *storage_open(const char *imsi, const char *store);
 void storage_sync(const char *imsi, const char *store, GKeyFile *keyfile);
-- 
1.6.6.1

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to