Enclosed some debugging statements in `#ifdef DEBUG'.

This commit is contained in:
Martin Baulig
1998-10-03 03:01:22 +00:00
parent 06d907146d
commit be63bf2d42
3 changed files with 19 additions and 1 deletions

View File

@@ -38,7 +38,9 @@ glibtop_send_version (glibtop *server, int fd)
size = strlen (buffer) + 1;
#ifdef DEBUG
fprintf (stderr, "SERVER ID: |%s|\n", buffer);
#endif
if (fd == 0) {
if (write (1, (const void *) &size, sizeof (size)) < 0)