projects
/
framework
/
uifw
/
xorg
/
lib
/
libice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
upload tizen2.0 source
[framework/uifw/xorg/lib/libice.git]
/
src
/
authutil.c
diff --git
a/src/authutil.c
b/src/authutil.c
old mode 100755
(executable)
new mode 100644
(file)
index
fd0a77d
..
6c00482
--- a/
src/authutil.c
+++ b/
src/authutil.c
@@
-171,7
+171,7
@@
IceLockAuthFile (
unlink (link_name);
}
}
unlink (link_name);
}
}
-
+
while (retries > 0)
{
if (creat_fd == -1)
while (retries > 0)
{
if (creat_fd == -1)
@@
-338,9
+338,9
@@
IceWriteAuthFileEntry (
\f
IceAuthFileEntry *
IceGetAuthFileEntry (
\f
IceAuthFileEntry *
IceGetAuthFileEntry (
- c
har
*protocol_name,
- c
har
*network_id,
- c
har
*auth_name
+ c
onst char
*protocol_name,
+ c
onst char
*network_id,
+ c
onst char
*auth_name
)
{
FILE *auth_file;
)
{
FILE *auth_file;
@@
-406,18
+406,18
@@
read_string (FILE *file, char **stringp)
return (0);
data = malloc ((unsigned) len + 1);
return (0);
data = malloc ((unsigned) len + 1);
-
+
if (!data)
return (0);
if (!data)
return (0);
-
- if (len != 0)
+
+ if (len != 0)
{
if (fread (data, (int) sizeof (char), (int) len, file) != len)
{
free (data);
return (0);
}
{
if (fread (data, (int) sizeof (char), (int) len, file) != len)
{
free (data);
return (0);
}
-
+
}
data[len] = '\0';
}
data[len] = '\0';