- int error;
- const char *errmsg, *addinfo;
- if ((error = Z3950_connection_error(z[i], &errmsg, &addinfo)))
- fprintf (stderr, "%s error: %s (%d) %s\n",
- Z3950_connection_host(z[i]),
- errmsg, error, addinfo);
- else
- {
- display_records (Z3950_connection_host(z[i]), r1[i]);
- display_records (Z3950_connection_host(z[i]), r2[i]);
- }
+ int error;
+ const char *errmsg, *addinfo;
+ if ((error = ZOOM_connection_error(z[i], &errmsg, &addinfo)))
+ fprintf (stderr, "%s error: %s (%d) %s\n",
+ ZOOM_connection_option_get(z[i], "host"),
+ errmsg, error, addinfo);
+ else
+ {
+ display_records (ZOOM_connection_option_get(z[i], "host"), r1[i]);
+ display_records (ZOOM_connection_option_get(z[i], "host"), r2[i]);
+ }