Corrected use of generic Z_ElementSetNames
authorAnders S. Mortensen <sondberg@indexdata.dk>
Fri, 15 Sep 2000 12:44:35 +0000 (12:44 +0000)
committerAnders S. Mortensen <sondberg@indexdata.dk>
Fri, 15 Sep 2000 12:44:35 +0000 (12:44 +0000)
SimpleServer.c
SimpleServer.xs

index 59608d7..43fa606 100644 (file)
@@ -381,7 +381,7 @@ int bend_fetch(void *handle, bend_fetch_rr *rr)
                if (composition->which == Z_RecordComp_simple)
                {
                        simple = composition->u.simple;
-                       if (simple->which == 1)
+                       if (simple->which == Z_ElementSetNames_generic)
                        {
                                hv_store(href, "COMP", 4, newSVpv(simple->u.generic, 0), 0);
                        } 
index 7a0b17a..88056f8 100644 (file)
@@ -372,7 +372,7 @@ int bend_fetch(void *handle, bend_fetch_rr *rr)
                if (composition->which == Z_RecordComp_simple)
                {
                        simple = composition->u.simple;
-                       if (simple->which == 1)
+                       if (simple->which == Z_ElementSetNames_generic)
                        {
                                hv_store(href, "COMP", 4, newSVpv(simple->u.generic, 0), 0);
                        }