Commit e2fd5219 authored by Marco Trevisan's avatar Marco Trevisan Committed by Bastien Nocera
Browse files

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()
    |         ^~~~~~~~~~~~~~~~
parent 7d8450e5
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment