X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=c6b29ae16237e68906aae0bdceba7d069fad7e98;hb=e1efa4cdf426e7eb952584ed4b9d3b818c8ff070;hp=2983b43ee2d96718d5fc1957ebada34280528fb4;hpb=72a7de6dfe07d7079de3c287aecdeb0f164c78b8;p=yaz-moved-to-github.git diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 2983b43..c6b29ae 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -1,5 +1,5 @@ /* - * $Id: zoomsh.c,v 1.20 2003-05-26 11:35:46 adam Exp $ + * $Id: zoomsh.c,v 1.22 2003-07-10 11:50:32 mike Exp $ * * ZOOM-C Shell */ @@ -21,6 +21,7 @@ #include #include #include +#include #define MAX_CON 100 @@ -158,7 +159,10 @@ static void display_records (ZOOM_connection c, /* if rec is non-null, we got a record for display */ if (rec) { - printf ("%d %s %s\n", pos+1, (db ? db : "unknown"), syntax); + char oidbuf[100]; + (void) oid_name_to_dotstring(CLASS_RECSYN, syntax, oidbuf); + printf ("%d %s %s (%s)\n", + pos+1, (db ? db : "unknown"), syntax, oidbuf); if (render) fwrite (render, 1, len, stdout); printf ("\n");