[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] leafnode .16
Ron Rosson wrote:
> When I put my 4.1-STABLE version back on line I installed 1.9.16. I am
> using the same spool. (Only the system disk was changed) During the compile
> of leafnode I got the follwoing warnings when compiling:
>
> gcc -I. -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -g -c activutil.c
> activutil.c: In function `readactive':
> activutil.c:261: warning: int format, long int arg (arg 3)
> activutil.c: In function `fakeactive':
> activutil.c:417: warning: int format, long int arg (arg 4)
> activutil.c:417: warning: int format, long int arg (arg 5)
I am not 100% sure (can't test myself because my version of gcc doesn't
give any warnings at all) but the following patch should fix the problems
(please tell me if it works - and also if it doesn't):
--- activutil.c.orig Tue Aug 29 19:57:21 2000
+++ activutil.c Tue Aug 29 19:38:33 2000
@@ -257,8 +257,8 @@
n = fread( buf, 1, st.st_size, f );
if ( n < st.st_size ) {
syslog( LOG_ERR,
- "Groupinfo file truncated while reading: %d < %d .",
- n, (int) st.st_size );
+ "Groupinfo file truncated while reading: %ld < %ld .",
+ n, st.st_size );
}
fclose( f );
}
@@ -413,7 +413,7 @@
}
closedir( ng );
if ( debugmode )
- syslog( LOG_DEBUG, "parsed directory %s: first %d, last %d",
+ syslog( LOG_DEBUG, "parsed directory %s: first %lu, last %lu",
de->d_name, first, last );
insertgroup( de->d_name, first, last, 0 );
}
However, I doubt that this patch will improve the performance of Leafnode
on your machine since it only affects a few lines of output to logfiles.
Could you please describe your problems in some more detail?
--Cornelius.
--
/* Cornelius Krasel, U Wuerzburg, Dept. of Pharmacology, Versbacher Str. 9 */
/* D-97078 Wuerzburg, Germany email: phak004@xxxxxxxxxxxxxxxxxxxxxx SP4 */
/* "Science is the game we play with God to find out what His rules are." */
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list