Thread: [Refdb-cvs] CVS: refdb/src backend-html.c,1.27.2.7,1.27.2.8 backend-ris.c,1.14.2.6,1.14.2.7 backend.
Status: Beta
Brought to you by:
mhoenicka
From: Markus H. <mho...@us...> - 2005-11-08 21:40:04
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5493 Modified Files: Tag: Release_0_9_5_stable backend-html.c backend-ris.c backend.c backendn-html.c backendn-scrn.c cgi.c dbfncs.c linklist.c refdbd.c refdbxp.c Log Message: fixed gcc4 warnings Index: backend-html.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend-html.c,v retrieving revision 1.27.2.7 retrieving revision 1.27.2.8 diff -u -U2 -r1.27.2.7 -r1.27.2.8 --- backend-html.c 3 Nov 2005 20:40:19 -0000 1.27.2.7 +++ backend-html.c 8 Nov 2005 21:39:50 -0000 1.27.2.8 @@ -22,4 +22,5 @@ #include <string.h> #include <syslog.h> /* for definitions of log message priorities */ +#include <stdio.h> #include <dbi/dbi.h> Index: backend-ris.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend-ris.c,v retrieving revision 1.14.2.6 retrieving revision 1.14.2.7 diff -u -U2 -r1.14.2.6 -r1.14.2.7 --- backend-ris.c 3 Nov 2005 20:40:19 -0000 1.14.2.6 +++ backend-ris.c 8 Nov 2005 21:39:50 -0000 1.14.2.7 @@ -22,4 +22,5 @@ #include <string.h> #include <syslog.h> /* for definitions of log message priorities */ +#include <stdio.h> #include <dbi/dbi.h> Index: backend.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend.c,v retrieving revision 1.27.2.13 retrieving revision 1.27.2.14 diff -u -U2 -r1.27.2.13 -r1.27.2.14 --- backend.c 3 Nov 2005 20:40:19 -0000 1.27.2.13 +++ backend.c 8 Nov 2005 21:39:50 -0000 1.27.2.14 @@ -22,6 +22,7 @@ #include <stdlib.h> #include <string.h> -#include <dbi/dbi.h> +#include <stdio.h> #include <syslog.h> +#include <dbi/dbi.h> #include "refdb.h" @@ -2217,5 +2218,5 @@ /* binary strings are returned without a terminating \0 so we have to bend over backwards to treat it as a normal string */ - result = dbi_result_get_binary(dbires, fieldname); + result = (const char*)dbi_result_get_binary(dbires, fieldname); if (!result || dbi_conn_error_flag(dbi_result_get_conn(dbires))) { return NULL; @@ -2275,5 +2276,5 @@ /* binary strings are returned without a terminating \0 so we have to bend over backwards to treat it as a normal string */ - result = dbi_result_get_binary_idx(dbires, idx); + result = (const char*)dbi_result_get_binary_idx(dbires, idx); if (!result || dbi_conn_error_flag(dbi_result_get_conn(dbires))) { return NULL; @@ -2336,5 +2337,5 @@ conn = dbi_result_get_conn(Result); - result = dbi_result_get_binary(Result, fieldname); + result = (const char*)dbi_result_get_binary(Result, fieldname); if (dbi_conn_error_flag(conn)) { @@ -2383,5 +2384,5 @@ /* this implementation assumes that binary strings are returned by the mysql driver including a trailing \0 */ - result = dbi_result_get_binary(Result, fieldname); + result = (const char*)dbi_result_get_binary(Result, fieldname); if (!result && dbi_conn_error_flag(dbi_result_get_conn(Result))) { return NULL; @@ -2432,5 +2433,5 @@ /* this implementation assumes that binary strings are returned by the mysql driver including a trailing \0 */ - result = dbi_result_get_binary_idx(Result, idx); + result = (const char*)dbi_result_get_binary_idx(Result, idx); if (!result || dbi_conn_error_flag(dbi_result_get_conn(Result))) { return NULL; Index: backendn-html.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backendn-html.c,v retrieving revision 1.6.2.5 retrieving revision 1.6.2.6 diff -u -U2 -r1.6.2.5 -r1.6.2.6 --- backendn-html.c 3 Nov 2005 20:40:19 -0000 1.6.2.5 +++ backendn-html.c 8 Nov 2005 21:39:50 -0000 1.6.2.6 @@ -21,4 +21,5 @@ #include <string.h> +#include <stdio.h> #include <syslog.h> /* for definitions of log message priorities */ #include <time.h> Index: backendn-scrn.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backendn-scrn.c,v retrieving revision 1.3.2.4 retrieving revision 1.3.2.5 diff -u -U2 -r1.3.2.4 -r1.3.2.5 --- backendn-scrn.c 3 Nov 2005 20:40:19 -0000 1.3.2.4 +++ backendn-scrn.c 8 Nov 2005 21:39:50 -0000 1.3.2.5 @@ -21,4 +21,5 @@ #include <string.h> +#include <stdio.h> #include <syslog.h> /* for definitions of log message priorities */ #include <time.h> Index: cgi.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/cgi.c,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -u -U2 -r1.6 -r1.6.2.1 --- cgi.c 19 Apr 2003 16:17:26 -0000 1.6 +++ cgi.c 8 Nov 2005 21:39:50 -0000 1.6.2.1 @@ -22,4 +22,5 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <fcntl.h> #include <limits.h> Index: dbfncs.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/dbfncs.c,v retrieving revision 1.15.2.15 retrieving revision 1.15.2.16 diff -u -U2 -r1.15.2.15 -r1.15.2.16 --- dbfncs.c 21 Sep 2005 23:29:24 -0000 1.15.2.15 +++ dbfncs.c 8 Nov 2005 21:39:50 -0000 1.15.2.16 @@ -22,4 +22,6 @@ #include <dbi/dbi.h> #include <syslog.h> +#include <string.h> +#include <stdio.h> #include "linklist.h" Index: linklist.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/linklist.c,v retrieving revision 1.9.2.4 retrieving revision 1.9.2.5 diff -u -U2 -r1.9.2.4 -r1.9.2.5 --- linklist.c 28 Oct 2005 23:47:33 -0000 1.9.2.4 +++ linklist.c 8 Nov 2005 21:39:50 -0000 1.9.2.5 @@ -22,4 +22,6 @@ #include <stdio.h> /* for a definition of NULL */ #include <stdlib.h> /* for malloc */ +#include <string.h> + #include "linklist.h" Index: refdbd.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbd.c,v retrieving revision 1.74.2.20 retrieving revision 1.74.2.21 diff -u -U2 -r1.74.2.20 -r1.74.2.21 --- refdbd.c 3 Nov 2005 20:40:19 -0000 1.74.2.20 +++ refdbd.c 8 Nov 2005 21:39:50 -0000 1.74.2.21 @@ -156,9 +156,10 @@ int main(int argc, char** argv) { int server_sockfd, client_sockfd; /* sockets used for client/server dialog */ - int server_len, client_len; + int server_len; int i, j, n_opt; /* flags, result, */ int n_pipe_buf = 512; /* maximum size of atomic write to fifo. 512 is the posix value. if the OS defines a larger value, this will be used below */ int num_drivers = 0; /* number of libdbi drivers */ int n_have_requested_driver = 0; /* used to check the libdbi drivers */ + socklen_t client_len; struct sockaddr_in server_address; struct sockaddr_in client_address; Index: refdbxp.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbxp.c,v retrieving revision 1.7.2.4 retrieving revision 1.7.2.5 diff -u -U2 -r1.7.2.4 -r1.7.2.5 --- refdbxp.c 29 Jul 2005 21:15:42 -0000 1.7.2.4 +++ refdbxp.c 8 Nov 2005 21:39:50 -0000 1.7.2.5 @@ -27,4 +27,5 @@ */ +#include <stdlib.h> #include <stdio.h> #include <string.h> |