X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fattributes.c;h=d99e945b014def2836ec1eb57ea33631fc5086d4;hb=2c411d651e22704f60f117d944b9380a07d247fe;hp=aa1282908438857be3437936f0d78574790625db;hpb=62c871225e944dbdb2a50e1253423952719145cf;p=pspp-builds.git diff --git a/src/data/attributes.c b/src/data/attributes.c index aa128290..d99e945b 100644 --- a/src/data/attributes.c +++ b/src/data/attributes.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2008 Free Software Foundation, Inc. + Copyright (C) 2008, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -220,7 +220,7 @@ attrset_lookup (struct attrset *set, const char *name) { struct attribute *attr; HMAP_FOR_EACH_WITH_HASH (attr, struct attribute, node, - hsh_hash_case_string (name), &set->map) + hash_case_string (name, 0), &set->map) if (!strcasecmp (attribute_get_name (attr), name)) break; return attr; @@ -234,7 +234,7 @@ attrset_add (struct attrset *set, struct attribute *attr) { const char *name = attribute_get_name (attr); assert (attrset_lookup (set, name) == NULL); - hmap_insert (&set->map, &attr->node, hsh_hash_case_string (name)); + hmap_insert (&set->map, &attr->node, hash_case_string (name, 0)); } /* Deletes any attribute from SET that matches NAME