Clean up white space, and tweak a comment slightly ("message" in the
authorGuy Harris <guy@alum.mit.edu>
Sun, 10 Apr 2005 08:51:46 +0000 (08:51 -0000)
committerGuy Harris <guy@alum.mit.edu>
Sun, 10 Apr 2005 08:51:46 +0000 (08:51 -0000)
error message case referred to the error message text, not the message
on the pipe).

svn path=/trunk/; revision=14035

capture_sync.c

index 4e2ba36d7b2cc8a6aac7afc85a30578efed7f4f3..db6d5cacca1aa07181f6c7247e62dba2a6d12c20 100644 (file)
@@ -117,11 +117,11 @@ static void sync_pipe_wait_for_child(capture_options *capture_opts, gboolean alw
 /*
  * Indications sent out on the sync pipe.
  */
-#define SP_CAPSTART    ';'         /* capture start message */
-#define SP_PACKET_COUNT        '*'     /* followed by count of packets captured since last message */
-#define SP_ERROR_MSG   '!'     /* followed by length of error message that follows */
-#define SP_DROPS       '#'         /* followed by count of packets dropped in capture */
-#define SP_FILE            ':'     /* followed by length of the name of the last opened file that follows */
+#define SP_CAPSTART     ';'    /* capture start message */
+#define SP_PACKET_COUNT '*'     /* followed by count of packets captured since last message */
+#define SP_ERROR_MSG    '!'     /* followed by length of error message that follows */
+#define SP_DROPS        '#'    /* followed by count of packets dropped in capture */
+#define SP_FILE                ':'     /* followed by length of the name of the last opened file that follows */
 
 
 
@@ -582,7 +582,7 @@ sync_pipe_input_cb(gint source, gpointer user_data)
       q++;
       nread--;
 
-      /* Read the entire message.
+      /* Read the entire file name.
          XXX - if the child hasn't sent it all yet, this could cause us
          to hang until they do. */
       msg = g_malloc(msglen + 1);