chiark / gitweb /
*** empty log message ***
authorstaffcvs <staffcvs>
Wed, 20 Feb 2008 18:49:11 +0000 (18:49 +0000)
committerstaffcvs <staffcvs>
Wed, 20 Feb 2008 18:49:11 +0000 (18:49 +0000)
apps/clients.c
apps/mainloop.h
apps/sympathy.c
apps/usage.c

index 73bf65525bfb05363cd01532d8412fde1c313f96..80b77502603205a04fb760e5753bd8d75bcc2b38 100644 (file)
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
 
 /*
  * $Log$
+ * Revision 1.9  2008/02/20 18:49:11  staffcvs
+ * *** empty log message ***
+ *
  * Revision 1.8  2008/02/20 18:31:44  james
  * *** empty log message ***
  *
@@ -37,6 +40,11 @@ static char rcsid[] = "$Id$";
  */
 
 #include <sympathy.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <malloc.h>
 #include "clients.h"
 
 static void
index 23d6e12f0ddc711eaa5e96fe630648e8927ab11b..3bbd960bac5bfd878547caeeec33d9f57c7fef9a 100644 (file)
@@ -12,6 +12,9 @@
 
 /*
  * $Log$
+ * Revision 1.2  2008/02/20 18:49:11  staffcvs
+ * *** empty log message ***
+ *
  * Revision 1.1  2008/02/20 18:33:37  james
  * *** empty log message ***
  *
@@ -22,7 +25,7 @@
 
 #include <sympathy.h>
 
-void
+extern void
 mainloop (TTY * tty, Socket * server_socket, Socket * client_socket, ANSI * a,
           Log * log, int nhistory);
 
index a754b3dce44f83eaf7a921ec008b81fa5128d412..94105a3437bd9ffc0c5a75e449e63d508f18e3a8 100644 (file)
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
 
 /*
  * $Log$
+ * Revision 1.9  2008/02/20 18:49:11  staffcvs
+ * *** empty log message ***
+ *
  * Revision 1.8  2008/02/20 18:33:37  james
  * *** empty log message ***
  *
@@ -43,6 +46,9 @@ static char rcsid[] = "$Id$";
 #include <sys/utsname.h>
 #include <sys/stat.h>
 #include <dirent.h>
+#include <string.h>
+#include <strings.h>
+#include <malloc.h>
 
 #include "mainloop.h"
 
@@ -396,6 +402,11 @@ main (int argc, char *argv[])
         oflags['p']++;
     }
 
+  if (oflags['s'] && !oflags['F'])
+    {
+      daemon (1, 0);            /*incase socket is relative path, unlink then will fail */
+    }
+
 
   if (oflags['s'] || oflags['t'])
     {
@@ -448,10 +459,6 @@ main (int argc, char *argv[])
 
     }
 
-  if (oflags['s'] && !oflags['F'])
-    {
-      daemon (1, 0);            /*incase socket is relative path, unlink then will fail */
-    }
 
   if (oflags['c'] || oflags['t'])
     {
index b34d75b8d845b3fa6936d0d787aac49308409e96..1a9273f7187adce130172dd97b70239f9f685c29 100644 (file)
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
 
 /*
  * $Log$
+ * Revision 1.6  2008/02/20 18:49:11  staffcvs
+ * *** empty log message ***
+ *
  * Revision 1.5  2008/02/20 18:31:44  james
  * *** empty log message ***
  *
@@ -28,6 +31,7 @@ static char rcsid[] = "$Id$";
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 
 void
 usage (void)