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

Re: [leafnode-list] Leafnode-1.9.5b2



krasel@xxxxxxxxxxxxxxxxxxxxxxxxxxxx (Cornelius Krasel) writes:

> Yes, I think so. Good that it also happens on HP/UX, because I have access
> to one :-) (st.st_size is defined as off_t; unfortunately it is not at
> all clear without parsing the config files whether off_t is long or not.
> I guessed it is, but it probably depends on the file system.)

Is this going to trap 64 bit machines? off_t being long long or
something? 

> and p is a pointer to char. However, tolower() is defined as
> int tolower( int ), so it probably involves some kind of casting.

s/probably/definitely/

> 
> > miscutil.c: In function `lockfile_exists':
> > miscutil.c:131: warning: int format, pid_t arg (arg 3)
> 
> fprintf( lf, "%d", getpid() );
> 
> Hmmm. Casting again, I guess.
> 
> > /fetchnews.c: In function `main':
> > /fetchnews.c:1572: warning: function declaration isn't a prototype
> > on
> > [jdietri1@larry /tmp/leafnode-1.9.5b2]uname -a
> > SunOS larry 5.6 Generic_105181-09 sun4u sparc SUNW,Ultra-4
> 
> This confuses me. The line is
> 
> if ( signal( SIGINT, sig_int ) == SIG_ERR )
> 
> where sig_int is a function. How does one have to write this correctly?

Should be okay, the function has been declared. Does the offending
system have signal() defined in <signal.h>?

-- 
Matthias Andree

Hi! I'm the infamous .signature virus!
Copy me into your ~/.signature to help me spread!

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list