version 1.53 | | version 1.54 |
---|
| | |
/* | | /* |
* static char *rcsid_shop_c = | | * static char *rcsid_shop_c = |
* "$Id: shop.c,v 1.53 2006/03/07 21:28:38 akirschbaum Exp $"; | | * "$Id: shop.c,v 1.54 2006/05/05 09:47:40 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
*/ | | */ |
static int shop_sort(const void *a1, const void *a2) | | static int shop_sort(const void *a1, const void *a2) |
{ | | { |
shopinv *s1 = (shopinv*)a1, *s2= (shopinv*)a2; | | const shopinv *s1 = (const shopinv*)a1, *s2= (const shopinv*)a2; |
| | |
if (s1->type<s2->type) return -1; | | if (s1->type<s2->type) return -1; |
if (s1->type>s2->type) return 1; | | if (s1->type>s2->type) return 1; |