On Wed, 26 Nov 2003, Margrit Lottmann wrote:
> Has anybody an idea which gcc-Options I can use to avoid these errors ???
it's a problem with the code. try this patch:
diff -ruN ifhp-3.5.13/src/ifhp.c ifhp-3.5.13-trockij/src/ifhp.c
--- ifhp-3.5.13/src/ifhp.c 2003-11-17 11:55:36.000000000 -0500
+++ ifhp-3.5.13-trockij/src/ifhp.c 2003-11-26 13:59:34.000000000 -0500
@@ -1063,8 +1063,9 @@
/* check for translation */
found = 0;
for( i = 0; !found && i < LEN_LIST_OBJ(Translate); ++i ){
+ char *t;
s = GET_ENTRY_LIST_OBJ(Translate,i);
- char *t = safestrchr(s,'=');
+ t = safestrchr(s,'=');
DEBUG2("Check_device_status: test translate '%s' to '%s'", line, s );
if( t ){
*t = 0;
@@ -3783,8 +3784,8 @@
}
if( !Appsocket && Ps_eoj && Ps_eoj_at_start ) Put_outbuf_str(
CTRL_D );
if( !echo_received ){
- c = 0;
char *s;
+ c = 0;
if( (s = safestrstr(Ps_status_code,"NAME")) ){ c = *s;
*s = 0; }
Put_outbuf_str( Ps_status_code );
Put_outbuf_str( endname );
@@ -3903,10 +3904,11 @@
if( waitend ) break;
}
if( use_pjl ){
+ char *e;
s = GET_HASH_STR_OBJ( Devstatus, "job", MEMINFO);
t = GET_HASH_STR_OBJ( Devstatus, "name", MEMINFO);
u = GET_HASH_STR_OBJ( Devstatus, "result", MEMINFO);
- char *e = GET_HASH_STR_OBJ( Devstatus, "echo", MEMINFO);
+ e = GET_HASH_STR_OBJ( Devstatus, "echo", MEMINFO);
DEBUG2("Do_waitend: job '%s', name '%s', result '%s', echo
'%s', endname %s",
s, t, u, e, endname );
if( s && safestrstr(s,"end") && t && safestrstr(t,endname) ){
@@ -4081,8 +4083,8 @@
if( pagecounter == -1 || pagecount_poll > 1 ){
do{
time_t start_t, now_t;
- time( & start_t );
int timeout = pagecount_timeout;
+ time( & start_t );
/*
if( pagecount_poll > 1 && pagecount_interval > 0 ){
timeout = pagecount_interval;
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------