Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

wrap extra output in condition

  • Loading branch information...
commit 00366137d51bce330f6dd172df4f84bfc30755ff 1 parent 8a1289a
pat brisbin authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 android-receiver.c
4 android-receiver.c
View
@@ -10,6 +10,7 @@
#include <getopt.h>
#include <errno.h>
+#define DEBUG 0
#define MAXBUF 1024
#define TOK "/"
#define FMTCALL " -!- Call from %s"
@@ -204,7 +205,8 @@ int main(int argc, char *argv[]) { /* {{{ */
if (n < 0)
error("error receiving from socket");
- printf("message received: %s\n", buf);
+ if (DEBUG)
+ printf("message received: %s\n", buf);
/* double-fork taken from dzen2/util.c; avoids zombie processes
* without requiring a signal handler. */
Please sign in to comment.
Something went wrong with that request. Please try again.