- compile errors and some warning fixed
authorJiří Škrábal <nykolas@ics.muni.cz>
Fri, 15 Oct 2004 12:19:11 +0000 (12:19 +0000)
committerJiří Škrábal <nykolas@ics.muni.cz>
Fri, 15 Oct 2004 12:19:11 +0000 (12:19 +0000)
org.glite.lb.server-bones/Makefile
org.glite.lb.server-bones/examples/srv_example.c
org.glite.lb.server-bones/src/srvbones.c

index ea67dd9..5e460c4 100644 (file)
@@ -50,7 +50,7 @@ ${LTLIB}: ${LOBJS}
 stage: compile
        $(MAKE) install PREFIX=${stagedir}
 
-check: example_test
+check:
        -echo "No unit tests so far."
 
 example: srv_example cnt_example
index 10f7702..e897bc5 100644 (file)
@@ -21,8 +21,8 @@ int debug  = 1;
 
 static int writen(int fd, char *ptr, int nbytes);
 static int readln(int fd, char *out, int nbytes);
-static int echo(int, struct timeval, void *);
-static int upper_echo(int, struct timeval, void *);
+static int echo(int, void *);
+static int upper_echo(int, void *);
 
 #define ECHO_PORT                      9999
 #define UPPER_ECHO_PORT                9998
@@ -79,7 +79,7 @@ int main(void)
        return 0;
 }
 
-int upper_echo(int fd, struct timeval client_start, void *data)
+int upper_echo(int fd, void *data)
 {
        int             n, i;
        char    line[80];
@@ -105,7 +105,7 @@ int upper_echo(int fd, struct timeval client_start, void *data)
        return 0;
 }
 
-int echo(int fd, struct timeval client_start, void *data)
+int echo(int fd, void *data)
 {
        int             n;
        char    line[80];
index 9c5d865..8c69534 100644 (file)
@@ -3,6 +3,8 @@
 #include <string.h>
 #include <unistd.h>
 #include <fcntl.h>
+#include <sys/types.h>
+#include <sys/socket.h>
 #include <sys/wait.h>
 #include <errno.h>
 #include <netdb.h>