ntpq.c (191302) | ntpq.c (200576) |
---|---|
1/* 2 * ntpq - query an NTP server using mode 6 commands 3 */ 4 5#include <stdio.h> 6 7#include <ctype.h> 8#include <signal.h> --- 3173 unchanged lines hidden (view full) --- 3182 break; 3183 3184 case OC: 3185 if (!decodeuint(value, &uval)) 3186 output_raw = '?'; 3187 else { 3188 char b[12]; 3189 | 1/* 2 * ntpq - query an NTP server using mode 6 commands 3 */ 4 5#include <stdio.h> 6 7#include <ctype.h> 8#include <signal.h> --- 3173 unchanged lines hidden (view full) --- 3182 break; 3183 3184 case OC: 3185 if (!decodeuint(value, &uval)) 3186 output_raw = '?'; 3187 else { 3188 char b[12]; 3189 |
3190 (void) snprintf(b, sizeof(b), "%03lo", uval); | 3190 (void) snprintf(b, sizeof b, "%03lo", uval); |
3191 output(fp, name, b); 3192 } 3193 break; 3194 3195 case MD: 3196 if (!decodeuint(value, &uval)) 3197 output_raw = '?'; 3198 else --- 95 unchanged lines hidden --- | 3191 output(fp, name, b); 3192 } 3193 break; 3194 3195 case MD: 3196 if (!decodeuint(value, &uval)) 3197 output_raw = '?'; 3198 else --- 95 unchanged lines hidden --- |