New file.
1998-08-25 Martin Baulig <martin@home-of-linux.org> * src/daemon/ChangeLog: New file. * sysdeps/sun4/ChangeLog: New file. * sysdeps/stub/ChangeLog: New file. * configure.in: Added check for `-lsocket'. (LIBGTOP_INCS): Added $(SUPPORTINCS). (INCLUDES): Added $(SUPPORTINCS). (LIBGTOP_EXTRA_LIBS): Added $(LIBSUPPORT). * acconfig.h: Added `NEED_DECLARATION_GETHOSTNAME', `NEED_DECLARATION_SETREUID', `NEED_DECLARATION_SETREGID' and `NEED_DECLARATION_GETPAGESIZE'. * includue/glibtop/global.h (<gnomesupport.h>): Include this. * lib/init.c (_init_server): Declared `static'. * lib/read_data.c: Added cast to `const void *' in calls to `recv' and `read' to avoid compiler warnings.
This commit is contained in:
committed by
Martin Baulig
parent
f353017948
commit
db3d7adbaa
+1
-1
@@ -31,7 +31,7 @@
|
||||
static glibtop _glibtop_global_server;
|
||||
glibtop *glibtop_global_server = &_glibtop_global_server;
|
||||
|
||||
void
|
||||
static void
|
||||
_init_server (glibtop *server, const unsigned features)
|
||||
{
|
||||
char *command, *temp;
|
||||
|
||||
+3
-3
@@ -27,7 +27,7 @@
|
||||
void *
|
||||
glibtop_read_data_l (glibtop *server)
|
||||
{
|
||||
size_t size;
|
||||
size_t size;
|
||||
void *ptr;
|
||||
int ret;
|
||||
|
||||
@@ -38,9 +38,9 @@ glibtop_read_data_l (glibtop *server)
|
||||
#endif
|
||||
|
||||
if (server->socket) {
|
||||
ret = recv (server->socket, &size, sizeof (size_t), 0);
|
||||
ret = recv (server->socket, (void *)&size, sizeof (size_t), 0);
|
||||
} else {
|
||||
ret = read (server->input [0], &size, sizeof (size_t));
|
||||
ret = read (server->input [0], (void *)&size, sizeof (size_t));
|
||||
}
|
||||
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user