Skip to content

Commit b5692d8

Browse files
anchaoOuss4
authored andcommitted
style/code: remove unnecessary trailing whitespace
N/A Signed-off-by: chao.an <[email protected]>
1 parent d64929d commit b5692d8

File tree

8 files changed

+315
-315
lines changed

8 files changed

+315
-315
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ SYMTABOBJ = $(SYMTABSRC:.c=$(OBJEXT))
5151
all:
5252
$(RM) $(BIN)
5353
$(MAKE) $(BIN)
54-
54+
5555
.PHONY: import install dirlinks export .depdirs preconfig depend clean distclean
5656
.PHONY: context clean_context context_all register register_all
5757
.PRECIOUS: $(BIN)
@@ -106,7 +106,7 @@ $(SYMTABSRC): $(foreach SDIR, $(CONFIGURED_APPS), $(SDIR)_all)
106106
$(Q) for app in ${CONFIGURED_APPS}; do \
107107
$(MAKE) -C "$${app}" archive ; \
108108
done
109-
$(Q) $(MAKE) install
109+
$(Q) $(MAKE) install
110110
$(Q) $(APPDIR)$(DELIM)tools$(DELIM)mksymtab.sh $(BINDIR) >$@.tmp
111111
$(Q) $(call TESTANDREPLACEFILE, $@.tmp, $@)
112112

canutils/candump/candump.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static __u32 dropcnt[MAXSOCK];
104104
static __u32 last_dropcnt[MAXSOCK];
105105
static char devname[MAXIFNAMES][IFNAMSIZ+1];
106106
static int dindex[MAXIFNAMES];
107-
static int max_devname_len; /* to prevent frazzled device name output */
107+
static int max_devname_len; /* to prevent frazzled device name output */
108108
const int canfd_on = 1;
109109

110110
#define MAXANI 4
@@ -249,7 +249,7 @@ int main(int argc, char **argv)
249249
struct timeval timeout, timeout_config = { 0, 0 }, *timeout_current = NULL;
250250
FILE *logfile = NULL;
251251

252-
#if 0 /* NuttX doesn't support these signals */
252+
#if 0 /* NuttX doesn't support these signals */
253253
signal(SIGTERM, sigterm);
254254
signal(SIGHUP, sigterm);
255255
#endif
@@ -360,7 +360,7 @@ int main(int argc, char **argv)
360360
print_usage(basename(argv[0]));
361361
exit(0);
362362
}
363-
363+
364364
if (logfrmt && view) {
365365
fprintf(stderr, "Log file format selected: Please disable ASCII/BINARY/SWAP options!\n");
366366
exit(0);
@@ -458,14 +458,14 @@ int main(int argc, char **argv)
458458
nptr = strchr(ptr, ','); /* update exit condition */
459459

460460
if (sscanf(ptr, "%" SCNx32 ":%" SCNx32,
461-
&rfilter[numfilter].can_id,
461+
&rfilter[numfilter].can_id,
462462
&rfilter[numfilter].can_mask) == 2) {
463463
rfilter[numfilter].can_mask &= ~CAN_ERR_FLAG;
464464
if (*(ptr+8) == ':')
465465
rfilter[numfilter].can_id |= CAN_EFF_FLAG;
466466
numfilter++;
467467
} else if (sscanf(ptr, "%" SCNx32 "~%" SCNx32,
468-
&rfilter[numfilter].can_id,
468+
&rfilter[numfilter].can_id,
469469
&rfilter[numfilter].can_mask) == 2) {
470470
rfilter[numfilter].can_id |= CAN_INV_FILTER;
471471
rfilter[numfilter].can_mask &= ~CAN_ERR_FLAG;
@@ -635,7 +635,7 @@ int main(int argc, char **argv)
635635
/* these settings may be modified by recvmsg() */
636636
iov.iov_len = sizeof(frame);
637637
msg.msg_namelen = sizeof(addr);
638-
msg.msg_controllen = sizeof(ctrlmsg);
638+
msg.msg_controllen = sizeof(ctrlmsg);
639639
msg.msg_flags = 0;
640640

641641
nbytes = recvmsg(s[i], &msg, 0);
@@ -661,7 +661,7 @@ int main(int argc, char **argv)
661661

662662
if (count && (--count == 0))
663663
running = 0;
664-
664+
665665
for (cmsg = CMSG_FIRSTHDR(&msg);
666666
cmsg && (cmsg->cmsg_level == SOL_SOCKET);
667667
cmsg = CMSG_NXTHDR(&msg,cmsg)) {
@@ -732,7 +732,7 @@ int main(int argc, char **argv)
732732
}
733733
goto out_fflush; /* no other output to stdout */
734734
}
735-
735+
736736
printf(" %s", (color>2)?col_on[idx%MAXCOL]:"");
737737

738738
switch (timestamp) {
@@ -768,7 +768,7 @@ int main(int argc, char **argv)
768768
diff.tv_sec = diff.tv_usec = 0;
769769
printf("(%03ju.%06ld) ",
770770
(uintmax_t)diff.tv_sec, diff.tv_usec);
771-
771+
772772
if (timestamp == 'd')
773773
last_tv = tv; /* update for delta calculation */
774774
}

canutils/cansend/cansend.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void print_usage_send(char *prg)
8181

8282
int main(int argc, char **argv)
8383
{
84-
int s; /* can raw socket */
84+
int s; /* can raw socket */
8585
int required_mtu;
8686
int mtu;
8787
int enable_canfd = 1;

canutils/libcanutils/lib.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
#include <stdio.h>
4949

5050
/* Compatibility for NuttX */
51-
typedef uint8_t __u8;
52-
typedef uint32_t __u32;
51+
typedef uint8_t __u8;
52+
typedef uint32_t __u32;
5353

5454
/* buffer sizes for CAN frame string representations */
5555

0 commit comments

Comments
 (0)