home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify queue reading/writing.
[plomrogue]
/
src
/
client
/
io.c
diff --git
a/src/client/io.c
b/src/client/io.c
index 299df7fae354f564dd1f3d8df060d84cf829345b..69a0865276e0636799da579518e0145728caba30 100644
(file)
--- a/
src/client/io.c
+++ b/
src/client/io.c
@@
-231,8
+231,7
@@
static void ping_pong_test(time_t last_server_answer_time)
static void try_growing_queue(time_t * last_server_answer_time)
{
static void try_growing_queue(time_t * last_server_answer_time)
{
- if (read_file_into_queue(world.file_server_out, &world.queue,
- &world.queue_size))
+ if (read_file_into_queue(world.file_server_out, &world.queue))
{
* last_server_answer_time = time(0);
}
{
* last_server_answer_time = time(0);
}
@@
-244,7
+243,7
@@
static uint8_t read_outfile()
{
uint8_t ret = 0;
char * msg;
{
uint8_t ret = 0;
char * msg;
- while (NULL != (msg
=get_message_from_queue(&world.queue,&world.queue_siz
e)))
+ while (NULL != (msg
= get_message_from_queue(&world.queu
e)))
{
char * log_prefix = "LOG ";
if (!strncmp(msg, log_prefix, strlen(log_prefix)))
{
char * log_prefix = "LOG ";
if (!strncmp(msg, log_prefix, strlen(log_prefix)))