Fix a compiler warning.
This commit is contained in:
@@ -58,7 +58,7 @@ handle_parent_connection (int s)
|
|||||||
while (do_read (s, cmnd, sizeof (glibtop_command))) {
|
while (do_read (s, cmnd, sizeof (glibtop_command))) {
|
||||||
#ifdef PARENT_DEBUG
|
#ifdef PARENT_DEBUG
|
||||||
fprintf (stderr, "Parent (%d) received command %d from client.\n",
|
fprintf (stderr, "Parent (%d) received command %d from client.\n",
|
||||||
getpid (), cmnd->command);
|
getpid (), (int) cmnd->command);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (cmnd->data_size >= BUFSIZ) {
|
if (cmnd->data_size >= BUFSIZ) {
|
||||||
@@ -74,7 +74,7 @@ handle_parent_connection (int s)
|
|||||||
if (cmnd->data_size) {
|
if (cmnd->data_size) {
|
||||||
#ifdef PARENT_DEBUG
|
#ifdef PARENT_DEBUG
|
||||||
fprintf (stderr, "Client has %d bytes of data.\n",
|
fprintf (stderr, "Client has %d bytes of data.\n",
|
||||||
cmnd->data_size);
|
(int) cmnd->data_size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
do_read (s, parameter, cmnd->data_size);
|
do_read (s, parameter, cmnd->data_size);
|
||||||
|
Reference in New Issue
Block a user