X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fhash.c;fp=src%2Flibpspp%2Fhash.c;h=55b3a6f1516b76494824ce915e682fde1b508105;hb=4e370920959483580fb1a2cd452ed2fe6db4c10f;hp=c3a7eb7e59d7c82d5ec2feeda287cdc014b4befb;hpb=87b6d42a2d540b92baf0db8fe28657eda747b3b0;p=pspp-builds.git diff --git a/src/libpspp/hash.c b/src/libpspp/hash.c index c3a7eb7e..55b3a6f1 100644 --- a/src/libpspp/hash.c +++ b/src/libpspp/hash.c @@ -231,8 +231,9 @@ hsh_destroy (struct hsh_table *h) } } -/* Locates an entry matching TARGET. Returns a pointer to the - entry, or a null pointer on failure. */ +/* Locates an entry matching TARGET. Returns the index for the + entry, if found, or the index of an empty entry that indicates + where TARGET should go, otherwise. */ static inline unsigned locate_matching_entry (struct hsh_table *h, const void *target) {