Changed (char *) to (void *) in example.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=313607
This commit is contained in:
Michael Kerrisk 2005-06-17 13:34:00 +00:00
parent 475f1bca2c
commit 1b05fb00b3
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ some of them.
e.key = data[i];
/* data is just an integer, instead of a
pointer to something */
e.data = (char *)i;
e.data = (void *)i;
ep = hsearch(e, ENTER);
/* there should be no failures */
if (ep == NULL) {