| version 1.38 | | version 1.39 |
|---|
| | |
| /* | | /* |
| * static char *rcsid_shop_c = | | * static char *rcsid_shop_c = |
| * "$Id: shop.c,v 1.38 2005/08/12 08:18:59 ryo_saeba Exp $"; | | * "$Id: shop.c,v 1.39 2005/08/12 13:46:34 ryo_saeba Exp $"; |
| */ | | */ |
| | | |
| /* | | /* |
| | |
| free(items); | | free(items); |
| return; | | return; |
| } | | } |
| qsort(items, numitems, sizeof(shopinv), (int (*)())shop_sort); | | qsort(items, numitems, sizeof(shopinv), (int (*)(const void*, const void*))shop_sort); |
| | | |
| for (i=0; i<numitems; i++) { | | for (i=0; i<numitems; i++) { |
| /* Collapse items of the same name together */ | | /* Collapse items of the same name together */ |