]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Fix compiler warnings in wrap_adjtimex.c
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 10 Feb 2009 17:06:25 +0000 (18:06 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 10 Feb 2009 17:06:25 +0000 (18:06 +0100)
wrap_adjtimex.c

index 3481e3c8eca8fe9eb813ad6bc601fca35337806a..66e45b3a5b6fc341154a1f5fac1d29f6463c49ea 100644 (file)
@@ -119,19 +119,19 @@ TMX_ReadCurrentParams(struct tmx_params *params)
   params->maxerror = txc.maxerror;
   params->esterror = txc.esterror;
   
-  params->sta_pll       = (txc.status & STA_PLL);
-  params->sta_ppsfreq   = (txc.status & STA_PPSFREQ);
-  params->sta_ppstime   = (txc.status & STA_PPSTIME);
-  params->sta_fll       = (txc.status & STA_FLL);
-  params->sta_ins       = (txc.status & STA_INS);
-  params->sta_del       = (txc.status & STA_DEL);
-  params->sta_unsync    = (txc.status & STA_UNSYNC);
-  params->sta_freqhold  = (txc.status & STA_FREQHOLD);
-  params->sta_ppssignal = (txc.status & STA_PPSSIGNAL);
-  params->sta_ppsjitter = (txc.status & STA_PPSJITTER);
-  params->sta_ppswander = (txc.status & STA_PPSWANDER);
-  params->sta_ppserror  = (txc.status & STA_PPSERROR);
-  params->sta_clockerr  = (txc.status & STA_CLOCKERR);
+  params->sta_pll       = !!(txc.status & STA_PLL);
+  params->sta_ppsfreq   = !!(txc.status & STA_PPSFREQ);
+  params->sta_ppstime   = !!(txc.status & STA_PPSTIME);
+  params->sta_fll       = !!(txc.status & STA_FLL);
+  params->sta_ins       = !!(txc.status & STA_INS);
+  params->sta_del       = !!(txc.status & STA_DEL);
+  params->sta_unsync    = !!(txc.status & STA_UNSYNC);
+  params->sta_freqhold  = !!(txc.status & STA_FREQHOLD);
+  params->sta_ppssignal = !!(txc.status & STA_PPSSIGNAL);
+  params->sta_ppsjitter = !!(txc.status & STA_PPSJITTER);
+  params->sta_ppswander = !!(txc.status & STA_PPSWANDER);
+  params->sta_ppserror  = !!(txc.status & STA_PPSERROR);
+  params->sta_clockerr  = !!(txc.status & STA_CLOCKERR);
 
   params->constant  = txc.constant;
   params->precision = txc.precision;