Skip to content

Commit 92a1966

Browse files
committed
Remove supernumerary spaces and tabulations in source files
Remove white spaces and tabulations at end of lines. Signed-off-by: Sebastien GODARD <[email protected]>
1 parent fa201b5 commit 92a1966

21 files changed

+512
-512
lines changed

cifsiostat.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ int get_cifs_nr(void)
114114
return 0;
115115

116116
while (fgets(line, sizeof(line), fp) != NULL) {
117-
117+
118118
if (!strncmp(line, "Share (unique mount targets): ", 30)) {
119119
sscanf(line + 30, "%d", &cifs);
120120
break;
@@ -167,7 +167,7 @@ void free_inactive_entries(void)
167167
void io_sys_init(void)
168168
{
169169
int i;
170-
170+
171171
/* How many processors on this machine? */
172172
cpu_nr = get_cpu_nr(~0, FALSE);
173173

@@ -179,7 +179,7 @@ void io_sys_init(void)
179179
perror("malloc");
180180
exit(4);
181181
}
182-
182+
183183
/* Allocate structures for number of CIFS directories found */
184184
for (i = 0; i < 2; i++) {
185185
if ((st_cifs[i] =
@@ -203,7 +203,7 @@ void io_sys_free(void)
203203
for (i = 0; i < 2; i++) {
204204
free(st_cifs[i]);
205205
}
206-
206+
207207
free(st_hdr_cifs);
208208
}
209209

@@ -362,7 +362,7 @@ void read_cifs_stat(int curr)
362362
}
363363
}
364364
}
365-
365+
366366
if (start) {
367367
scifs.fopens = all_open;
368368
save_stats(cifs_name, curr, &scifs);
@@ -521,7 +521,7 @@ void rw_io_stat_loop(long int count, struct tm *rectime)
521521

522522
/* Don't buffer data if redirected to a pipe */
523523
setbuf(stdout, NULL);
524-
524+
525525
do {
526526
if (cpu_nr > 1) {
527527
/*
@@ -594,7 +594,7 @@ int main(int argc, char **argv)
594594
/* Display an easy-to-read CIFS report */
595595
flags |= I_D_HUMAN_READ;
596596
break;
597-
597+
598598
case 'k':
599599
if (DISPLAY_MEGABYTES(flags)) {
600600
usage(argv[0]);
@@ -620,7 +620,7 @@ int main(int argc, char **argv)
620620
/* Print version number and exit */
621621
print_version();
622622
break;
623-
623+
624624
default:
625625
usage(argv[0]);
626626
}

common.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ time_t get_time(struct tm *rectime, int d_off)
144144
}
145145
utc++;
146146
}
147-
147+
148148
if (utc == 2)
149149
return get_gmtime(rectime, d_off);
150150
else
@@ -169,7 +169,7 @@ int count_csvalues(int arg_c, char **arg_v)
169169
int opt = 1;
170170
int nr = 0;
171171
char *t;
172-
172+
173173
while (opt < arg_c) {
174174
if (strchr(arg_v[opt], ',')) {
175175
for (t = arg_v[opt]; t; t = strchr(t + 1, ',')) {
@@ -178,7 +178,7 @@ int count_csvalues(int arg_c, char **arg_v)
178178
}
179179
opt++;
180180
}
181-
181+
182182
return nr;
183183
}
184184

@@ -220,7 +220,7 @@ int get_dev_part_nr(char *dev_name)
220220
part++;
221221
}
222222
}
223-
223+
224224
/* Close directory */
225225
closedir(dir);
226226

@@ -264,7 +264,7 @@ int get_sysfs_dev_nr(int display_partitions)
264264
if (!access(line, R_OK)) {
265265
/* Yep... */
266266
dev++;
267-
267+
268268
if (display_partitions) {
269269
/* We also want the number of partitions for this device */
270270
dev += get_dev_part_nr(drd->d_name);
@@ -425,7 +425,7 @@ char *device_name(char *name)
425425
out[MAX_FILE_LEN - 1] = '\0';
426426

427427
free(resolved_name);
428-
428+
429429
return out;
430430
}
431431

@@ -456,7 +456,7 @@ int is_device(char *name, int allow_virtual)
456456
}
457457
snprintf(syspath, sizeof(syspath), "%s/%s%s", SYSFS_BLOCK, name,
458458
allow_virtual ? "" : "/device");
459-
459+
460460
return !(access(syspath, F_OK));
461461
}
462462

@@ -554,7 +554,7 @@ unsigned long long get_interval(unsigned long long prev_uptime,
554554

555555
/* prev_time=0 when displaying stats since system startup */
556556
itv = curr_uptime - prev_uptime;
557-
557+
558558
if (!itv) { /* Paranoia checking */
559559
itv = 1;
560560
}
@@ -582,7 +582,7 @@ unsigned long long get_per_cpu_interval(struct stats_cpu *scc,
582582
struct stats_cpu *scp)
583583
{
584584
unsigned long long ishift = 0LL;
585-
585+
586586
if ((scc->cpu_user - scc->cpu_guest) < (scp->cpu_user - scp->cpu_guest)) {
587587
/*
588588
* Sometimes the nr of jiffies spent in guest mode given by the guest
@@ -599,7 +599,7 @@ unsigned long long get_per_cpu_interval(struct stats_cpu *scc,
599599
ishift += (scp->cpu_nice - scp->cpu_guest_nice) -
600600
(scc->cpu_nice - scc->cpu_guest_nice);
601601
}
602-
602+
603603
/*
604604
* Don't take cpu_guest and cpu_guest_nice into account
605605
* because cpu_user and cpu_nice already include them.
@@ -681,7 +681,7 @@ void compute_ext_disk_stats(struct stats_disk *sdc, struct stats_disk *sdp,
681681
{
682682
double tput
683683
= ((double) (sdc->nr_ios - sdp->nr_ios)) * HZ / itv;
684-
684+
685685
xds->util = S_VALUE(sdp->tot_ticks, sdc->tot_ticks, itv);
686686
xds->svctm = tput ? xds->util / tput : 0.0;
687687
/*
@@ -804,7 +804,7 @@ char **get_persistent_names(void)
804804
files = (char **) calloc(n - 1, sizeof(char *));
805805
if (!files)
806806
goto free_list;
807-
807+
808808
/*
809809
* i is for traversing namelist, k is for files.
810810
* i != k because we are ignoring "." and ".." entries.
@@ -824,7 +824,7 @@ char **get_persistent_names(void)
824824
files[k] = NULL;
825825

826826
free_list:
827-
827+
828828
for (i = 0; i < n; i++) {
829829
free(namelist[i]);
830830
}

count.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -472,17 +472,17 @@ int get_filesystem_nr(void)
472472
/* Get current filesystem */
473473
while (fgets(line, sizeof(line), fp) != NULL) {
474474
if (line[0] == '/') {
475-
475+
476476
/* Read filesystem name and mount point */
477477
sscanf(line, "%71s %127s", fs_name, mountp);
478-
478+
479479
/* Replace octal codes */
480480
oct2chr(mountp);
481-
481+
482482
/* Check that total size is not null */
483483
if (statfs(mountp, &buf) < 0)
484484
continue;
485-
485+
486486
if (buf.f_blocks) {
487487
fs++;
488488
}

ioconf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ int ioc_init(void)
159159
strncpy(ioconf_name, IOCONF, 64);
160160
}
161161
ioconf_name[63] = '\0';
162-
162+
163163
/* Init ioc_refnr array */
164164
memset(ioc_refnr, 0, sizeof(ioc_refnr));
165165

0 commit comments

Comments
 (0)