projects
/
framework
/
security
/
smack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48541f2
)
Fixed compiler warnings.
author
Jarkko Sakkinen
<ext-jarkko.2.sakkinen@nokia.com>
Mon, 15 Nov 2010 15:29:35 +0000
(07:29 -0800)
committer
Jarkko Sakkinen
<ext-jarkko.2.sakkinen@nokia.com>
Mon, 15 Nov 2010 15:29:35 +0000
(07:29 -0800)
src/smack.c
patch
|
blob
|
history
diff --git
a/src/smack.c
b/src/smack.c
index
79662fa
..
462fc1f
100644
(file)
--- a/
src/smack.c
+++ b/
src/smack.c
@@
-145,7
+145,7
@@
int smack_write_rules_to_file(smack_rules_t handle, const char *path,
struct smack_object *o, *otmp;
FILE *file;
char str[6];
- int err;
+ int err
= 0
;
file = fopen(path, "w+");
if (!file)
@@
-309,7
+309,6
@@
int smack_write_users_to_file(smack_users_t handle, const char *path)
{
struct smack_user *u, *tmp;
FILE *file;
- char str[6];
int err;
file = fopen(path, "w+");