mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
main: Fix redeclaration linking error
Fix linking error as the "store" global variable gets redeclared in each C file that includes the header. Move the actual declaration to main.c. Fixes: /usr/bin/ld: ./.libs/libfprintd.a(device.o):/builds/libfprint/fprintd/src/storage.h:51: multiple definition of `store'; main.o:/builds/libfprint/fprintd/src/storage.h:51: first defined here
This commit is contained in:
@ -46,4 +46,4 @@ struct storage {
|
||||
typedef struct storage fp_storage;
|
||||
|
||||
/* The currently setup store */
|
||||
fp_storage store;
|
||||
extern fp_storage store;
|
||||
|
||||
Reference in New Issue
Block a user