Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
libfprint
fprintd
Commits
35ae4dd0
Commit
35ae4dd0
authored
Oct 31, 2008
by
Bastien Nocera
Committed by
Daniel Drake
Nov 02, 2008
Browse files
Fix a bunch of warnings
More warnings fixed in the file storage.
parent
0a075532
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/file_storage.c
View file @
35ae4dd0
...
...
@@ -37,6 +37,8 @@
#include
<libfprint/fprint.h>
#include
"file_storage.h"
#define DIR_PERMS 0700
#ifndef FILE_STORAGE_PATH
...
...
@@ -97,9 +99,7 @@ int file_storage_print_data_save(struct fp_print_data *data,
enum
fp_finger
finger
,
const
char
*
username
)
{
GError
*
err
=
NULL
;
char
*
path
;
char
*
dirpath
;
unsigned
char
*
buf
;
char
*
path
,
*
dirpath
,
*
buf
;
size_t
len
;
int
r
;
char
*
base_store
=
NULL
;
...
...
@@ -110,7 +110,7 @@ int file_storage_print_data_save(struct fp_print_data *data,
return
r
;
}
len
=
fp_print_data_get_data
(
data
,
&
buf
);
len
=
fp_print_data_get_data
(
data
,
(
guchar
**
)
&
buf
);
if
(
!
len
)
{
g_free
(
base_store
);
return
-
ENOMEM
;
...
...
@@ -145,7 +145,7 @@ int file_storage_print_data_save(struct fp_print_data *data,
static
int
load_from_file
(
char
*
path
,
struct
fp_print_data
**
data
)
{
gsize
length
;
g
char
*
contents
;
char
*
contents
;
GError
*
err
=
NULL
;
struct
fp_print_data
*
fdata
;
...
...
@@ -161,7 +161,7 @@ static int load_from_file(char *path, struct fp_print_data **data)
return
r
;
}
fdata
=
fp_print_data_from_data
(
contents
,
length
);
fdata
=
fp_print_data_from_data
(
(
guchar
*
)
contents
,
length
);
g_free
(
contents
);
if
(
!
fdata
)
return
-
EIO
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment