#include "gedcom.h"
#include "output.h"
+#include "portability.h"
#include <locale.h>
#include <stdio.h>
void show_help ()
{
printf("gedcom-parse test program for libgedcom\n\n");
- printf("Usage: updatetest [options] file\n");
+ printf("Usage: updatetest [options]\n");
printf("Options:\n");
printf(" -h Show this help text\n");
printf(" -q No output to standard output\n");
{
struct xref_value* xr;
int result;
+ long int tmp;
xr = gedcom_get_by_xref("@NOTHING_THERE@");
if (xr != NULL)
return 16;
}
- if ((int)xr->object != 1) {
+ tmp = void_ptr_to_int(xr->object);
+ if (tmp != 1) {
output(1, "Not the correct cross-reference object\n");
return 17;
}