projects
/
monky
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfix: memory and thread-deleting problems
[monky]
/
src
/
users.c
diff --git
a/src/users.c
b/src/users.c
index
cd3c01e
..
5ba7959
100644
(file)
--- a/
src/users.c
+++ b/
src/users.c
@@
-157,7
+157,7
@@
void update_user_time(char *tty)
}
}
}
}
-void update_users(void)
+int update_users(void)
{
struct information *current_info = &info;
char temp[BUFLEN] = "";
{
struct information *current_info = &info;
char temp[BUFLEN] = "";
@@
-221,4
+221,5
@@
void update_users(void)
current_info->users.times = malloc(text_buffer_size);
strncpy(current_info->users.times, "broken", text_buffer_size);
}
current_info->users.times = malloc(text_buffer_size);
strncpy(current_info->users.times, "broken", text_buffer_size);
}
+ return 0;
}
}