git.openpandora.org
/
pandora-libraries.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix fubar'd error check
[pandora-libraries.git]
/
lib
/
pnd_utility.c
diff --git
a/lib/pnd_utility.c
b/lib/pnd_utility.c
index
b011cdd
..
17fb322
100644
(file)
--- a/
lib/pnd_utility.c
+++ b/
lib/pnd_utility.c
@@
-375,7
+375,7
@@
unsigned char pnd_lock ( char *lockname ) {
snprintf ( fullpath, PATH_MAX, "%s/%s", PND_LOCK_PATH, lockname );
- if ( ( fd = creat ( fullpath, 0444 )
< 0 )
) {
+ if ( ( fd = creat ( fullpath, 0444 )
) < 0
) {
return ( 0 ); // error, yeah, I know, no way to know why it failed..
}