Ahem, void* = int ? Patrick!

And then you don't use the value before its re-assigned anyway.  I just
hashed the line out.

gcc -I.. -I./include -I./common -g -W -Wall -Werror -Wno-unused -g -O2
-g -W -Wall -Werror -Wno-unused -DHAVE_CONFIG_H -DCHOWN=\"/bin/chown\"
-DCHGRP=\"/bin/chgrp\" -DPRINTCAP_PATH=\"/etc/lprng/printcap\"
-DLPD_PRINTCAP_PATH=\"/etc/lprng/lpd_printcap\"
-DLPD_PERMS_PATH=\"/etc/lprng/lpd.perms\"
-DLPD_CONF_PATH=\"/etc/lprng/lpd.conf\" -DREQUIRE_CONFIGFILES=\"1\"
-DFILTER_PATH=\"/bin:/usr/bin:/usr/local/bin\"
-DLD_LIBRARY_PATH=\"/lib:/usr/lib:/usr/local/lib\"
-DLOCKFILE=\"/var/run/lprng/lpd\" -DCLEAR=\"/usr/bin/clear\"
-DUSERID=\"daemon\" -DGROUPID=\"lp\" -DLOCALEDIR=\"/usr/share/locale\"
-DDONE_JOBS=\"1\" -DDONE_JOBS_MAX_AGE=\"0\"
-DUNIXSOCKETPATH=\"/var/run/lprng/socket\" -DPRUTIL=\"/usr/bin/pr\" -c
./common/lpd_jobs.c  -fPIC -DPIC -o .libs/lpd_jobs.lo
cc1: warnings being treated as errors
./common/lpd_jobs.c: In function `cmp_server':
./common/lpd_jobs.c:192: warning: cast from pointer to integer of
different size

Here is the offending line, notice how the first tr is not used:

int cmp_server( const void *left, const void *right, const void *p )
{
    struct line_list *l, *r;
    int tr, tl;
    tr = (int)p;
    l = ((struct line_list **)left)[0];
    r = ((struct line_list **)right)[0];
    tl = Find_flag_value(l,DONE_TIME,Value_sep);
    tr = Find_flag_value(r,DONE_TIME,Value_sep);



-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/        <[EMAIL PROTECTED]>
MIEEE <[EMAIL PROTECTED]>                 Debian developer <[EMAIL PROTECTED]>

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to