added ignore file
[my-code/dmsd.git] / dmsd.c
diff --git a/dmsd.c b/dmsd.c
index 6154927..6f0a773 100644 (file)
--- a/dmsd.c
+++ b/dmsd.c
@@ -5,6 +5,7 @@
  *
  */
 
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
@@ -28,7 +29,7 @@ int main(int argc,char *argv[]) {
   int status,recvd_bytes;
 
   if(argc!=4) {
-    printf("usage: %s <video pid> <audio pid> <dbox ip address>\n",argv[1]);
+    printf("usage: %s <video pid> <audio pid> <dbox ip address>\n",argv[0]);
     return -1;
   }
 
@@ -60,6 +61,9 @@ int main(int argc,char *argv[]) {
   }
 
   dprintf(v_fd,"GET /%x HTTP/1.0\r\n\r\n",vpid);
+  printf("debug: GET /%x HTTP/1.0\r\n\r\nwritten to video fd\n",vpid);
+  //dprintf(v_fd,"GET /%x",vpid);
+  //printf("debug: GET /%x\nwritten to video fd\n",vpid);
 
   status=1; 
   while(status) {