Branch: Tag:

2001-03-17

2001-03-17 21:09:06 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: bin/precompile.pike:1.41
Rev: src/builtin_functions.c:1.354
Rev: src/docode.c:1.110
Rev: src/modules/Image/colors.c:1.47
Rev: src/modules/Image/encodings/psd.c:1.28
Rev: src/modules/Image/encodings/xcf.c:1.36
Rev: src/modules/Parser/html.c:1.131
Rev: src/modules/system/memory.c:1.7
Rev: src/port.c:1.43
Rev: src/stralloc.c:1.117

26:   #define HUGE HUGE_VAL   #endif /*!HUGE*/    - RCSID("$Id: stralloc.c,v 1.116 2001/02/04 02:34:51 hubbe Exp $"); + RCSID("$Id: stralloc.c,v 1.117 2001/03/17 21:01:35 grubba Exp $");      #define BEGIN_HASH_SIZE 997   #define MAX_AVG_LINK_LENGTH 3
1165:   static int low_binary_strcmp(char *a, ptrdiff_t alen,    char *b, ptrdiff_t blen)   { -  INT32 tmp; +     while(alen>0 && blen>0)    { -  tmp=strcoll(a,b); -  if(tmp) return (int)tmp; -  tmp=strlen(a)+1; -  a+=tmp; -  b+=tmp; -  alen-=tmp; -  blen-=tmp; +  int tmp1 = strcoll(a,b); +  ptrdiff_t tmp2; +  if(tmp1) return (int)tmp1; +  tmp2 = strlen(a)+1; +  a += tmp2; +  b += tmp2; +  alen -= tmp2; +  blen -= tmp2;    }    if(alen==blen) return 0;    if(alen > blen) return 1;