[Refdb-cvs] CVS: refdb/src refdbdnote.c,1.25.2.4,1.25.2.5
Status: Beta
Brought to you by:
mhoenicka
From: Markus H. <mho...@us...> - 2005-05-05 17:30:36
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21963 Modified Files: Tag: Release_0_9_5_stable refdbdnote.c Log Message: fixed getnote() return codes; add sqlite3 support Index: refdbdnote.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbdnote.c,v retrieving revision 1.25.2.4 retrieving revision 1.25.2.5 diff -u -U2 -r1.25.2.4 -r1.25.2.5 --- refdbdnote.c 3 May 2005 20:31:39 -0000 1.25.2.4 +++ refdbdnote.c 5 May 2005 17:30:22 -0000 1.25.2.5 @@ -660,5 +660,5 @@ getnote(): implements the client command getnote - int getnote returns 0 = no error, 1 = out of memory, 2 = subselect failed + int getnote returns 0 = no error, 1 = out of memory or connection error, 2 = subselect failed struct CLIENT_REQUEST* ptr_clrequest ptr to structure with client info @@ -740,5 +740,5 @@ send_status(ptr_clrequest->fd, 801, TERM_NO); LOG_PRINT(LOG_CRIT, get_status_msg(801)); - return 0; + return 1; } @@ -751,5 +751,5 @@ send_status(ptr_clrequest->fd, 801, TERM_NO); LOG_PRINT(LOG_CRIT, get_status_msg(801)); - return 0; + return 1; } sql_command[0] = '\0'; /* start with an empty string */ @@ -763,5 +763,5 @@ send_status(ptr_clrequest->fd, 801, TERM_NO); LOG_PRINT(LOG_CRIT, get_status_msg(801)); - return 0; + return 1; } sql_command1[0] = '\0'; /* start with an empty string */ @@ -775,5 +775,5 @@ send_status(ptr_clrequest->fd, 801, TERM_NO); LOG_PRINT(LOG_CRIT, get_status_msg(801)); - return 0; + return 1; } buffer[0] = '\0'; /* start with an empty string */ @@ -787,5 +787,5 @@ send_status(ptr_clrequest->fd, 801, TERM_NO); LOG_PRINT(LOG_CRIT, get_status_msg(801)); - return 0; + return 1; } buffer[0] = '\0'; /* start with an empty string */ @@ -798,5 +798,5 @@ LOG_PRINT(LOG_WARNING, get_status_msg(204)); delete_all_lilimem(&sentinel); - return 0; + return 1; } @@ -816,5 +816,5 @@ LOG_PRINT(LOG_WARNING, get_status_msg(701)); delete_all_lilimem(&sentinel); - return 0; + return 1; } else { @@ -2063,5 +2063,5 @@ iconv_close(conv_descriptor); } - return 0; + return 1; } @@ -2083,5 +2083,5 @@ iconv_close(conv_descriptor); } - return 0; + return 1; } else { @@ -2100,5 +2100,5 @@ iconv_close(conv_descriptor); } - return 0; + return 1; } else { @@ -2115,5 +2115,5 @@ iconv_close(conv_descriptor); } - return 0; + return 1; } else { @@ -2133,5 +2133,5 @@ iconv_close(conv_descriptor); } - return 0; + return 1; } @@ -2158,5 +2158,5 @@ iconv_close(conv_descriptor); } - return 0; + return 1; } |