main: Fix "function declaration isn't a prototype" warning

../src/file_storage.c:47:20: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
47 | static const char *get_storage_path()
   |                    ^~~~~~~~~~~~~~~~
../src/file_storage.c: In function ‘get_storage_path’:
../src/file_storage.c:47:20: warning: old-style function definition [-Wold-style-definition]
../src/file_storage.c: In function ‘file_storage_discover_users’:
../src/file_storage.c:270:9: warning: old-style function definition [-Wold-style-definition]
270 | GSList *file_storage_discover_users()
    |         ^~~~~~~~~~~~~~~~
This commit is contained in:
Marco Trevisan (Treviño)
2020-01-27 18:57:18 +01:00
committed by Bastien Nocera
parent 7d8450e5ab
commit e2fd52190a

View File

@ -42,7 +42,7 @@
#define FILE_STORAGE_PATH "/var/lib/fprint"
#define DIR_PERMS 0700
static const char *get_storage_path()
static const char *get_storage_path(void)
{
const char *path;
@ -265,7 +265,7 @@ GSList *file_storage_discover_prints(FpDevice *dev, const char *username)
return list;
}
GSList *file_storage_discover_users()
GSList *file_storage_discover_users(void)
{
g_autoptr(GError) err = NULL;
GSList *list = NULL;