Replaced C99 initializer.

* lib/init.c: Replaced C99 initializer.

	* lib/read.c: (do_read): 1-line cleanup.
This commit is contained in:
Benoît Dejean
2004-10-10 17:21:57 +00:00
parent bbcbe6b67d
commit 13025c6c5f
3 changed files with 8 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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");
}