File ntp-code-cleanup.patch of Package ntp.import4677
--- libntp/audio.c.orig 2010-10-21 21:07:20.000000000 +0200
+++ libntp/audio.c 2010-10-21 21:08:23.000000000 +0200
@@ -388,7 +388,7 @@
r = 0 ; /* setting to zero nicely mutes the channel */
#endif
l |= r << 8;
- if ( cf_agc )
+ if ( *cf_agc )
rval = ioctl(ctl_fd, agc, &l);
else
if (port == 2) {
@@ -408,7 +408,7 @@
printf("audio_gain: mongain %d/%d\n", mongain, l);
# endif
l |= r << 8;
- if ( cf_monitor )
+ if ( *cf_monitor )
rval = ioctl(ctl_fd, monitor, &l );
else
rval = ioctl(ctl_fd, SOUND_MIXER_WRITE_VOLUME, &l);
--- parseutil/dcfd.c.orig 2010-10-21 21:08:56.000000000 +0200
+++ parseutil/dcfd.c 2010-10-21 21:09:11.000000000 +0200
@@ -587,7 +587,7 @@
/*
* invalid character (no consecutive bit sequence)
*/
- dprintf(("parse: cvt_rawdcf: character check for 0x%x@%d FAILED\n", *s, s - buffer));
+ dprintf(("parse: cvt_rawdcf: character check for 0x%x@%ld FAILED\n", *s, s - buffer));
*s = (unsigned char)~0;
rtc = CVT_FAIL|CVT_BADFMT;
}