]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
tg2.c:
authorHal Murray <murray@ntp.org>
Thu, 17 Dec 2009 02:00:16 +0000 (21:00 -0500)
committerHal Murray <murray@ntp.org>
Thu, 17 Dec 2009 02:00:16 +0000 (21:00 -0500)
  Fix warnings on Solaris.

bk: 4b2990b0z0NguVOpFUURa6MNCkR0kw

util/tg2.c

index 9735a63f5b978943af2339054d6a00733216bfc4..1293aff33cfb46f15a4438f181388148b4568e56 100644 (file)
@@ -585,13 +585,15 @@ main(
        int     DayOfYear;
 
        int     BitNumber;
+#ifdef HAVE_SYS_SOUNDCARD_H
        int     AudioFormat;
-       int MonoStereo;     /* 0=mono, 1=stereo */
+       int     MonoStereo;     /* 0=mono, 1=stereo */
 #define        MONO    (0)
 #define        STEREO  (1)
-       int     SetSampleRate;
        int     SampleRate;
        int     SampleRateDifference;
+#endif
+       int     SetSampleRate;
        char FormatCharacter = '3';             /* Default is IRIG-B with IEEE 1344 extensions */
        char AsciiValue;
        int     HexValue;