strtoumax: fix typo in previous commit.
[gnulib.git] / lib / di-set.c
index 5e839a3..b757d49 100644 (file)
@@ -1,6 +1,6 @@
 /* Set operations for device-inode pairs stored in a space-efficient manner.
 
-   Copyright 2009-2011 Free Software Foundation, Inc.
+   Copyright 2009-2013 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
@@ -233,7 +233,7 @@ di_set_insert (struct di_set *dis, dev_t dev, ino_t ino)
     return -1;
 
   /* Put I into the inode set.  */
-  return hash_insert0 (ino_set, (void *) i, NULL);
+  return hash_insert_if_absent (ino_set, (void const *) i, NULL);
 }
 
 /* Look up the DEV,INO pair in the set DIS.