memcpy(&msgnum, key->data, sizeof(msgnum));
printf("msgmain: len is %d , key is %ld\n", key->size, msgnum);
+ if (key->size != 4) {
+ printf("\033[31m\033[1m *** SOURCE DATABASE IS NOT 32-BIT *** ABORTING *** \033[0m\n");
+ abort();
+ }
+
+
+
// If the msgnum is positive, we are looking at a MESSAGE
// If the msgnum is negative, we are looking at METADATA
}
int ret;
char dbfilename[32];
- printf("Converting table %d\n", which_cdb);
+ printf("\033[32m\033[1mConverting table %d\033[0m\n", which_cdb);
// shamelessly swiped from https://docs.oracle.com/database/bdb181/html/programmer_reference/am_cursor.html
DB *dbp;