Replaced C99 initializer.
* lib/init.c: Replaced C99 initializer. * lib/read.c: (do_read): 1-line cleanup.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2004-10-10 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* lib/init.c: Replaced C99 initializer.
|
||||
|
||||
* lib/read.c: (do_read): 1-line cleanup.
|
||||
|
||||
2004-10-09 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* configure.in: Depends on glib 2.4.0
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#define DEFAULT_PORT 42800
|
||||
#endif
|
||||
|
||||
static glibtop _glibtop_global_server = { .flags = 0 };
|
||||
static glibtop _glibtop_global_server = { 0 };
|
||||
glibtop *glibtop_global_server = &_glibtop_global_server;
|
||||
|
||||
static void
|
||||
|
@@ -42,8 +42,7 @@ do_read (int s, void *ptr, size_t total_size)
|
||||
|
||||
if(nread == 0)
|
||||
close (s);
|
||||
|
||||
if (nread < 0)
|
||||
else if (nread < 0)
|
||||
glibtop_error_io ("recv");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user