Update of /cvsroot/refdb/refdb/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2326
Modified Files:
refdbdref.c
Log Message:
added support to count datasets from 0 or 1
Index: refdbdref.c
===================================================================
RCS file: /cvsroot/refdb/refdb/src/refdbdref.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -U2 -r1.61 -r1.62
--- refdbdref.c 4 Feb 2004 21:19:05 -0000 1.61
+++ refdbdref.c 7 Feb 2004 14:51:44 -0000 1.62
@@ -59,4 +59,5 @@
extern char refdblib[]; /* location of shareable data */
extern int n_log_level; /* numeric version of log_level */
+extern int nongeek_offset; /* :-) */
/* forward declaration of local functions */
@@ -686,5 +687,5 @@
if (result == 1) {
ptr_addresult->success++;
- sprintf(return_msg, "Adding set %d successful\n", set_count);
+ sprintf(return_msg, "Adding input set %d successful\n", set_count + nongeek_offset);
LOG_PRINT(LOG_INFO, "dataset added successfully");
numbyte = tiwrite(ptr_clrequest->fd, return_msg, TERM_YES);
@@ -697,5 +698,5 @@
else if (result == 2) {
ptr_addresult->updated++;
- sprintf(return_msg, "Updating set %d successful\n", set_count);
+ sprintf(return_msg, "Updating set %d successful\n", set_count + nongeek_offset);
LOG_PRINT(LOG_INFO, "dataset updated successfully");
numbyte = tiwrite(ptr_clrequest->fd, return_msg, TERM_YES);
@@ -708,5 +709,5 @@
else {
ptr_addresult->failure++;
- sprintf(return_msg, "Processing set %d failed\n", set_count);
+ sprintf(return_msg, "Processing set %d failed\n", set_count + nongeek_offset);
LOG_PRINT(LOG_WARNING, "failed processing dataset");
numbyte = tiwrite(ptr_clrequest->fd, return_msg, TERM_YES);
|