Added prototype. Added cast to const void *' in calls to write' and

1998-08-25  Martin Baulig  <martin@home-of-linux.org>

	* daemon.h (handle_parent_connection): Added prototype.
	* write.c, io.c: Added cast to `const void *' in calls to
	`write' and `send' to avoid compiler warnings.
	* gnuserv.c (handle_signal): Declared static.
	(main): Casting return value of `getuid' to `int' in
	debugging statement.

	* ChangeLog: New file.
This commit is contained in:
Martin Baulig
1998-08-25 08:20:04 +00:00
committed by Martin Baulig
parent 9049a19434
commit f66f7fde8c
5 changed files with 28 additions and 9 deletions

View File

@@ -34,10 +34,10 @@ do_output (int s, glibtop_response *resp, off_t offset,
resp->data_size = data_size;
if (s == 0) {
if (write (1, resp, sizeof (glibtop_response)) < 0)
if (write (1, (const void *) resp, sizeof (glibtop_response)) < 0)
glibtop_warn_io ("write");
} else {
if (send (s, resp, sizeof (glibtop_response), 0) < 0)
if (send (s, (const void *) resp, sizeof (glibtop_response), 0) < 0)
glibtop_warn_io ("send");
}