mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
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:
committed by
Bastien Nocera
parent
7d8450e5ab
commit
e2fd52190a
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user