summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/util
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-05-30 03:57:47 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-05-30 03:57:47 +0000
commit4f960dd75f181e9fa2edc44324f15f0ab5c64b37 (patch)
tree15a9c7203efd47ba6dde2896fdb6327dddd4547f /usr.sbin/xntpd/util
parent30ef9631c5eac7f8254bd3d7ad274d34d9f518b8 (diff)
downloadFreeBSD-src-4f960dd75f181e9fa2edc44324f15f0ab5c64b37.zip
FreeBSD-src-4f960dd75f181e9fa2edc44324f15f0ab5c64b37.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'usr.sbin/xntpd/util')
-rw-r--r--usr.sbin/xntpd/util/byteorder.c4
-rw-r--r--usr.sbin/xntpd/util/longsize.c2
-rw-r--r--usr.sbin/xntpd/util/ntptime.c2
-rw-r--r--usr.sbin/xntpd/util/precision.c2
-rw-r--r--usr.sbin/xntpd/util/testrs6000.c2
-rw-r--r--usr.sbin/xntpd/util/tickadj.c32
-rw-r--r--usr.sbin/xntpd/util/timetrim.c8
7 files changed, 26 insertions, 26 deletions
diff --git a/usr.sbin/xntpd/util/byteorder.c b/usr.sbin/xntpd/util/byteorder.c
index 665c146..ff7d239 100644
--- a/usr.sbin/xntpd/util/byteorder.c
+++ b/usr.sbin/xntpd/util/byteorder.c
@@ -32,8 +32,8 @@ main()
else big = 0;
}
for (i=0; i< sizeof(long); i++) {
- if (big == 1 && (u.c[i] == (sizeof(long) - i))) {
- continue;
+ if (big == 1 && (u.c[i] == (sizeof(long) - i))) {
+ continue;
} else if (big == 0 && (u.c[i] == (i+1))) {
continue;
} else {
diff --git a/usr.sbin/xntpd/util/longsize.c b/usr.sbin/xntpd/util/longsize.c
index 6bdbdfe..bb884ba 100644
--- a/usr.sbin/xntpd/util/longsize.c
+++ b/usr.sbin/xntpd/util/longsize.c
@@ -2,7 +2,7 @@
main()
{
- if (sizeof(long) == 8) {
+ if (sizeof(long) == 8) {
printf("-DLONG8\n");
} else if (sizeof(long) == 4) {
printf("-DLONG4\n");
diff --git a/usr.sbin/xntpd/util/ntptime.c b/usr.sbin/xntpd/util/ntptime.c
index 1515905..38d9a4a 100644
--- a/usr.sbin/xntpd/util/ntptime.c
+++ b/usr.sbin/xntpd/util/ntptime.c
@@ -189,7 +189,7 @@ main(argc, argv)
}
status = ntp_adjtime(&ntx);
if (status < 0)
- perror((errno == EPERM) ?
+ perror((errno == EPERM) ?
"Must be root to set kernel values\nntp_adjtime() call fails" :
"ntp_adjtime() call fails");
else {
diff --git a/usr.sbin/xntpd/util/precision.c b/usr.sbin/xntpd/util/precision.c
index 6961475..64fe336 100644
--- a/usr.sbin/xntpd/util/precision.c
+++ b/usr.sbin/xntpd/util/precision.c
@@ -108,7 +108,7 @@ int default_get_resolution()
* In order to guard against spurious values, which could occur if we
* happen to hit a fat interrupt, we do this for MINLOOPS times and
* keep the minimum value obtained.
- */
+ */
int default_get_precision()
{
struct timeval tp;
diff --git a/usr.sbin/xntpd/util/testrs6000.c b/usr.sbin/xntpd/util/testrs6000.c
index 9a5e0cd..0d4bf4f 100644
--- a/usr.sbin/xntpd/util/testrs6000.c
+++ b/usr.sbin/xntpd/util/testrs6000.c
@@ -35,7 +35,7 @@ int sig,code;
struct sigcontext *scp;
{
signal (SIGALRM, timeout);
- if (adjtime(&adjustment, &result))
+ if (adjtime(&adjustment, &result))
printf("adjtime call failed\n");
if (result.tv_sec != 0 || result.tv_usec != 0) {
printf("result.u = %d.%06.6d ", (int) result.tv_sec,
diff --git a/usr.sbin/xntpd/util/tickadj.c b/usr.sbin/xntpd/util/tickadj.c
index 75d2ab7..74757dd 100644
--- a/usr.sbin/xntpd/util/tickadj.c
+++ b/usr.sbin/xntpd/util/tickadj.c
@@ -39,7 +39,7 @@ main(int argc, char ** argv)
}
else
txc.mode = 0;
-
+
if (__adjtimex(&txc) < 0)
perror("adjtimex");
else
@@ -194,29 +194,29 @@ char *argv[];
}
if (setnoprintf && (noprintf_offset == 0)) {
- (void) fprintf(stderr,
+ (void) fprintf(stderr,
"No noprintf kernal variable\n");
errflg++;
}
if (unsetdosync && (dosync_offset == 0)) {
- (void) fprintf(stderr,
+ (void) fprintf(stderr,
"No dosynctodr kernal variable\n");
errflg++;
}
-
+
if (writeopttickadj && (tickadj_offset == 0)) {
- (void) fprintf(stderr,
+ (void) fprintf(stderr,
"No tickadj kernal variable\n");
errflg++;
}
if (writetick && (tick_offset == 0)) {
- (void) fprintf(stderr,
+ (void) fprintf(stderr,
"No tick kernal variable\n");
errflg++;
}
-
+
if (tickadj_offset != 0)
readvar(fd, tickadj_offset, &tickadj);
@@ -273,7 +273,7 @@ char *argv[];
if ((!quiet) && (tickadj_offset != 0))
(void) printf("recommended value of tickadj = %d us\n",
recommend_tickadj);
-
+
if (writetickadj == 0 && !writeopttickadj &&
!unsetdosync && writetick == 0 && !setnoprintf)
exit(errflg ? 1 : 0);
@@ -344,7 +344,7 @@ getoffsets(filex, tick_off, tickadj_off, dosync_off, noprintf_off)
#if defined(SYS_AUX3) || defined(SYS_AUX2)
#define X_TICKADJ 0
#define X_TICK 1
-#define X_DEF
+#define X_DEF
static struct nlist nl[] =
{ {"tickadj"},
{"tick"},
@@ -357,7 +357,7 @@ getoffsets(filex, tick_off, tickadj_off, dosync_off, noprintf_off)
#define X_TICK 1
#define X_DOSYNC 2
#define X_NOPRINTF 3
-#define X_DEF
+#define X_DEF
static struct nlist nl[] =
{ {{"_tickadj"}},
{{"_tick"}},
@@ -372,7 +372,7 @@ getoffsets(filex, tick_off, tickadj_off, dosync_off, noprintf_off)
#define X_TICK 1
#define X_DOSYNC 2
#define X_NOPRINTF 3
-#define X_DEF
+#define X_DEF
static struct nlist nl[] =
{ {{"tickadj"}},
{{"tick"}},
@@ -388,7 +388,7 @@ getoffsets(filex, tick_off, tickadj_off, dosync_off, noprintf_off)
#endif
#define X_DOSYNC 1
#define X_NOPRINTF 2
-#define X_DEF
+#define X_DEF
static struct nlist nl[] =
{ {"tickadj"},
{"dosynctodr"},
@@ -405,7 +405,7 @@ getoffsets(filex, tick_off, tickadj_off, dosync_off, noprintf_off)
#define X_TICKADJ 0
#define X_TICK 1
#define X_DEF
- static struct nlist nl[] =
+ static struct nlist nl[] =
#ifdef hp9000s300
{ {"_tickadj"},
{"_old_tick"},
@@ -452,7 +452,7 @@ getoffsets(filex, tick_off, tickadj_off, dosync_off, noprintf_off)
for (kname = kernels; *kname != NULL; kname++) {
if (stat(*kname, &stbuf) == -1)
continue;
- if (nlist(*kname, nl) >= 0)
+ if (nlist(*kname, nl) >= 0)
break;
}
#endif
@@ -537,7 +537,7 @@ writevar(fd, off, var)
unsigned long off;
int var;
{
-
+
if (lseek(fd, off, L_SET) == -1) {
(void) fprintf(stderr, "%s: lseek fails: ", progname);
perror("");
@@ -561,7 +561,7 @@ readvar(fd, off, var)
int *var;
{
int i;
-
+
if (lseek(fd, off, L_SET) == -1) {
(void) fprintf(stderr, "%s: lseek fails: ", progname);
perror("");
diff --git a/usr.sbin/xntpd/util/timetrim.c b/usr.sbin/xntpd/util/timetrim.c
index a1635c1..7b9413f 100644
--- a/usr.sbin/xntpd/util/timetrim.c
+++ b/usr.sbin/xntpd/util/timetrim.c
@@ -1,6 +1,6 @@
/*
* timetrim.c
- *
+ *
* "timetrim" allows setting and adjustment of the system clock frequency
* trim parameter on Silicon Graphics machines. The trim value native
* units are nanoseconds per second (10**-9), so a trim value of 1 makes
@@ -8,7 +8,7 @@
* of zero. Xntpd currently uses units of 2**-20 secs for its frequency
* offset (drift) values; to convert to a timetrim value, multiply by
* 1E9 / 2**20 (about 954).
- *
+ *
* "timetrim" with no arguments just prints out the current kernel value.
* With a numeric argument, the kernel value is set to the supplied value.
* The "-i" flag causes the supplied value to be added to the kernel value.
@@ -17,7 +17,7 @@
*
* Note that there is a limit of +-3000000 (0.3%) on the timetrim value
* which is (silently?) enforced by the kernel.
- *
+ *
*/
#include <stdio.h>
@@ -37,7 +37,7 @@ char **argv;
int c, incremental = 0, ntpunits = 0;
LONG timetrim;
double value, strtod();
-
+
while (--argc && **++argv == '-' && isalpha(argv[0][1])) {
switch (argv[0][1]) {
case 'i':
OpenPOWER on IntegriCloud