mirror of git://git.sysmocom.de/ofono
storage: add printf-like verification
Add __attribute__((format)) to {write, read}_file()
This commit is contained in:
parent
b0a63388de
commit
8a4f8d2022
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue