lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev compiler warning in HTFile.c:1065


From: dickey
Subject: Re: lynx-dev compiler warning in HTFile.c:1065
Date: Tue, 3 Nov 1998 21:57:01 -0500 (EST)

> 
> got the following compiler warning (2.8.1rel.1, SunOS4.1.3, slang1.2.2): 
>  
> WW/Library/Implementation -O2 -DSUN -DSUN4   
> -I../../../WWW/Library/Implementati 
> on/ -DXMOSAIC_HACK -DACCESS_AUTH -c 
> ../../../WWW/Library/Implementation/HTFile.c 
> ../../../WWW/Library/Implementation/HTFile.c: In function `HTEditable': 
> ../../../WWW/Library/Implementation/HTFile.c:1065: warning: passing arg 2 of 
> `ge 
> tgroups' from incompatible pointer type 

This is what's going on (I'm not at the moment certain whether you're
seeing a bug or a feature):  getgroups takes an argument which is an
array of gid_t.  For the normal SunOS 4.x, this is really an integer (int),
but the /5lib environment can really be a short integer.  But that's
tested properly if you're using the compilers designed for that purpose.

I think configuring with gcc confuses things a little because the
declaration of gid_t is really a short in both cases -- but when I studied
this a month or so ago, it seemed to be doing the right thing in the
configure script (including for slang).  But I'll look at it again.
  
> __Henry 


-- 
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]