Skip to content

Commit

Permalink
Remove trailing spaces at the end of lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory-nutt committed Aug 13, 2018
1 parent f2ef84f commit a57610c
Show file tree
Hide file tree
Showing 80 changed files with 168 additions and 168 deletions.
4 changes: 2 additions & 2 deletions canutils/libobd2/obd2.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ struct obd_dev_s *obd_init(char *devfile, int baudate, int mode)
}

dev->can_mode = mode;

printf("OBD-II device initialized!\n");

return dev;
}
2 changes: 1 addition & 1 deletion examples/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,7 @@ examples/powerled
1. Demo mode

2. Continuous mode

3. Flash mode

examples/pty_test
Expand Down
2 changes: 1 addition & 1 deletion examples/adxl372_test/adxl372_test_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static char subtest_prompt(FAR char *prompt)
* Name: adxl372_test
*
* Description:
* This function is public so that it can be called by board diagnostic
* This function is public so that it can be called by board diagnostic
* programs that contain the ADXL372.
*
******************************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion examples/bastest/tests/test04.bas
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
10 a=1
20 repeat
20 repeat
30 print a
40 a=a+1
50 until a=10
Expand Down
2 changes: 1 addition & 1 deletion examples/bastest/tests/test25.bas
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
60 data 1,2,3,4,5,6,7,8,9
80 dim inch_array(5,1),cm_array(5,1)
90 mat read inch_array
100 data 1,12,36,100,39.37
100 data 1,12,36,100,39.37
110 mat print inch_array
120 mat cm_array=(2.54)*inch_array
130 mat print cm_array
Expand Down
4 changes: 2 additions & 2 deletions examples/buttons/buttons_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,12 @@ static int button_daemon(int argc, char *argv[])
if (nbytes == 0 || errno == EAGAIN)
{
if ((fds[i].revents & POLLIN) != 0)
{
{
printf("button_daemon: ERROR no read data[%d]\n", i);
}
}
else if (errno != EINTR)
{
{
printf("button_daemon: read[%d] failed: %d\n", i, errno);
}

Expand Down
8 changes: 4 additions & 4 deletions examples/cctype/cctype_main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ extern "C"
int lower = std::tolower(i);
std::printf("%3d %c %d %d %d %d %d %d %d %d %d %d %d %d %d %c %c\n",
i, std::isprint(i) ? i : '.',
std::isspace(i), std::isascii(i), std::isprint(i), std::isgraph(i),
std::iscntrl(i), std::islower(i), std::isupper(i), std::isalpha(i),
std::isblank(i), std::isdigit(i), std::isalnum(i), std::ispunct(i),
std::isspace(i), std::isascii(i), std::isprint(i), std::isgraph(i),
std::iscntrl(i), std::islower(i), std::isupper(i), std::isalpha(i),
std::isblank(i), std::isdigit(i), std::isalnum(i), std::ispunct(i),
std::isxdigit(i),
std::isprint(upper) ? upper : '.',
std::isprint(upper) ? upper : '.',
std::isprint(lower) ? lower : '.');
}

Expand Down
2 changes: 1 addition & 1 deletion examples/cromfs/cromfs/testdir1/DingDongDell.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Ding, dong, bell,
Pussy's in the well.
Pussy's in the well.
Who put her in?
Little Johnny Green.

Expand Down
2 changes: 1 addition & 1 deletion examples/cromfs/cromfs/testdir3/JackBeNimble.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ The candlestick.
Jack jumped high
Jack jumped low
Jack jumped over
and burned his toe.
and burned his toe.
2 changes: 1 addition & 1 deletion examples/djoystick/djoy_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static djoy_buttonset_t g_djoylast;

/* Joystick discrete names */

static const char *g_djoynames[DJOY_NDISCRETES] =
static const char *g_djoynames[DJOY_NDISCRETES] =
{
"UP", "DOWN", "LEFT", "RIGHT", "SELECT", "FIRE", "JUMP", "RUN"
};
Expand Down
2 changes: 1 addition & 1 deletion examples/flowc/flowc_mktestdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ int main(int argc, char **envp)
putchar(ch);
}
}

return 0;
}
2 changes: 1 addition & 1 deletion examples/gpio/gpio_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ int gpio_main(int argc, char *argv[])
default:
fprintf(stderr, "ERROR: Unrecognized pintype: %d\n", (int)pintype);
close(fd);
return EXIT_FAILURE;
return EXIT_FAILURE;
}

close(fd);
Expand Down
2 changes: 1 addition & 1 deletion examples/lis3dsh_reader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ STACKSIZE = 2048
# LIS3DSH reader example

ASRCS =
CSRCS =
CSRCS =
MAINSRC = lis3dsh_reader_main.c

CONFIG_FLOX_IMUTEST_PROGNAME ?= lis3dsh_reader$(EXEEXT)
Expand Down
4 changes: 2 additions & 2 deletions examples/lsm330spi_test/lsm330spi_test_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static char subtest_prompt(FAR char *prompt)
* Name: lsm330acl_test
*
* Description:
* This function is public so that it can be called by board diagnostic
* This function is public so that it can be called by board diagnostic
* programs that contain the LSM330.
*
****************************************************************************/
Expand Down Expand Up @@ -384,7 +384,7 @@ int lsm330acl_test(int is_interactive, char *path)
* Name: lsm330gyro_test
*
* Description:
* This function is public so that it can be called by board diagnostic
* This function is public so that it can be called by board diagnostic
* programs that contain the LSM330.
*
****************************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion examples/lvgldemo/tp_cal.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
****************************************************************************/

#ifdef __cplusplus
extern "C"
extern "C"
{
#endif

Expand Down
4 changes: 2 additions & 2 deletions examples/module/drivers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
-include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs

ALL_SUBDIRS = chardev
BUILD_SUBDIRS = chardev
ALL_SUBDIRS = chardev
BUILD_SUBDIRS = chardev
FSIMG_SUBDIR = fsroot

MODULE_DIR = $(APPDIR)/examples/module
Expand Down
4 changes: 2 additions & 2 deletions examples/oneshot/oneshot_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ int oneshot_main(int argc, char *argv[])
if (argc == 4)
{
/* FORM: nsh> oneshot [-d <usecs>] [<devname>] */

devname = argv[3];
}
}
Expand Down Expand Up @@ -210,7 +210,7 @@ int oneshot_main(int argc, char *argv[])

start.ts.tv_sec = secs;
start.ts.tv_nsec = usecs * 1000;

/* Zero usecs to terminate the loop */

usecs = 0;
Expand Down
4 changes: 2 additions & 2 deletions examples/ostest/cancel.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ static FAR void *sem_waiter(FAR void *parameter)
if (!parameter)
{
/* Release the mutex */

printf("sem_waiter: Releasing mutex\n");
status = pthread_mutex_unlock(&mutex);
if (status != 0)
{
printf("sem_waiter: ERROR pthread_mutex_unlock failed, status=%d\n", status);
}

/* Set the cancelable state */

printf("sem_waiter: Setting cancelable\n");
Expand Down
2 changes: 1 addition & 1 deletion examples/ostest/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static bool verify_tls_info(uintptr_t value)
printf("tls: ERROR Element %d: Set %lx / read %lx\n",
i, (unsigned long)value,
(unsigned long)info->tl_elem[i]);
fail = true;
fail = true;
}
}

Expand Down
2 changes: 1 addition & 1 deletion examples/pdcurses/worm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ int worm_main(int argc, char *argv[])

#endif /* KEY_RESIZE */

/* Make it simple to put this into single-step mode, or resume normal
/* Make it simple to put this into single-step mode, or resume normal
* operation - T. Dickey
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/pdcurses/xmas_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ static void strng5(void)
mvwaddstr(treescrn2, 12, 12, ",.:'");

/* Save a fully lit tree */

overlay(treescrn2, treescrn);

wrefresh(treescrn2);
Expand Down
2 changes: 1 addition & 1 deletion examples/pf_ieee802154/pf_cmdline.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void pf_cmdline(int argc, char **argv)
/* Forms:
*
* argc=1: progname
* argc=2: progname <address>
* argc=2: progname <address>
* argc=4: progname -p <panid> <address>
*/

Expand Down
4 changes: 2 additions & 2 deletions examples/powermonitor/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ APPNAME = powermonitor
PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = 768

ASRCS =
CSRCS =
ASRCS =
CSRCS =
MAINSRC = powermonitor_main.c

CFLAGS += -I../../../nuttx/arch/arm/src -I../../../nuttx/arch/arm/src/common
Expand Down
2 changes: 1 addition & 1 deletion examples/rgbled/rgbled.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ int rgbled_main(int argc, char *argv[])
sgreen = 1;
}

sprintf(buffer, "#%02X%02X%02X", red, green, blue);
sprintf(buffer, "#%02X%02X%02X", red, green, blue);
(void)write(fd, buffer, 8);
usleep(5000);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/stat/stat_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ int stat_main(int argc, char *argv[])
{
dump_stat(&statbuf);
}

/* Try fstatfs */

printf("\nTest fstatfs(%s)\n", path);
Expand Down
4 changes: 2 additions & 2 deletions examples/udgram/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ include $(APPDIR)/Make.defs
SERVER_ASRCS =
SERVER_AOBJS = $(SERVER_ASRCS:.S=$(OBJEXT))

SERVER_CSRCS =
SERVER_CSRCS =
SERVER_COBJS = $(SERVER_CSRCS:.c=$(OBJEXT))

SERVER_MAINSRC = udgram_server.c
Expand All @@ -64,7 +64,7 @@ SERVER_PROGNAME = $(CONFIG_EXAMPLES_UDGRAM_SERVER_PROGNAME)
CLIENT_ASRCS =
CLIENT_AOBJS = $(CLIENT_ASRCS:.S=$(OBJEXT))

CLIENT_CSRCS =
CLIENT_CSRCS =
CLIENT_COBJS = $(CLIENT_CSRCS:.c=$(OBJEXT))

CLIENT_MAINSRC = udgram_client.c
Expand Down
4 changes: 2 additions & 2 deletions examples/userfs/userfs_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ static int ufstest_fstat(FAR void *volinfo, FAR void *openinfo,
buf->st_mode = (S_IFREG | S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH);
buf->st_size = opriv->file->inuse;
buf->st_blksize = UFSTEST_FS_BLOCKSIZE;
buf->st_blocks = (opriv->file->inuse + UFSTEST_FS_BLOCKSIZE - 1) /
buf->st_blocks = (opriv->file->inuse + UFSTEST_FS_BLOCKSIZE - 1) /
UFSTEST_FS_BLOCKSIZE;
buf->st_atime = 0;
buf->st_mtime = 0;
Expand Down Expand Up @@ -490,7 +490,7 @@ static int ufstest_statfs(FAR void *volinfo, FAR struct statfs *buf)

for (i = 0; i < UFSTEST_NFILES; i++)
{
inuse += (g_rootdir[i].inuse + UFSTEST_FS_BLOCKSIZE - 1) /
inuse += (g_rootdir[i].inuse + UFSTEST_FS_BLOCKSIZE - 1) /
UFSTEST_FS_BLOCKSIZE;
}

Expand Down
4 changes: 2 additions & 2 deletions examples/ustream/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ include $(APPDIR)/Make.defs
SERVER_ASRCS =
SERVER_AOBJS = $(SERVER_ASRCS:.S=$(OBJEXT))

SERVER_CSRCS =
SERVER_CSRCS =
SERVER_COBJS = $(SERVER_CSRCS:.c=$(OBJEXT))

SERVER_MAINSRC = ustream_server.c
Expand All @@ -60,7 +60,7 @@ SERVER_STACKSIZE = 2048
CLIENT_ASRCS =
CLIENT_AOBJS = $(CLIENT_ASRCS:.S=$(OBJEXT))

CLIENT_CSRCS =
CLIENT_CSRCS =
CLIENT_COBJS = $(CLIENT_CSRCS:.c=$(OBJEXT))

CLIENT_MAINSRC = ustream_client.c
Expand Down
2 changes: 1 addition & 1 deletion fsutils/mkfatfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Copyright (C) 2017 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
Expand Down
2 changes: 1 addition & 1 deletion fsutils/mksmartfs/Make.defs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################################################################
# apps/fsutils/mksmartfs/Make.defs
#
# Copyright (C) 2015 Ken Pettit
# Copyright (C) 2015 Ken Pettit
# Author: Ken Pettit <pettitkd@gmail.com>
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion fsutils/mksmartfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
#
# Modified by Ken Pettit <pettitkd@gmail.com> for mksmartfs usage.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion fsutils/mksmartfs/mksmartfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
*
* Inputs:
* pathname - the full path to a registered block driver
* sectorsize - the size of logical sectors on the device from 256-16384.
* sectorsize - the size of logical sectors on the device from 256-16384.
* Setting this to zero will cause the device to be formatted
* using the default CONFIG_MTD_SMART_SECTOR_SIZE value.
* nrootdirs - Number of root directory entries to create.
Expand Down
4 changes: 2 additions & 2 deletions gpsutils/minmea/minmea.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ bool minmea_check(FAR const char *sentence, bool strict)
return false;
}
}
else if (strict)
else if (strict)
{
/* Discard non-checksummed frames in strict mode. */

Expand Down Expand Up @@ -316,7 +316,7 @@ bool minmea_scan(FAR const char *sentence, FAR const char *format, ...)

break;
}
else
else
{
/* integer overflow. bail out. */

Expand Down
2 changes: 1 addition & 1 deletion graphics/traveler/src/trv_color.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ trv_pixel_t trv_color_rgb2pixel(struct trv_color_rgb_s *pixel)
}
else
{
lum.red = lum.green = lum.blue = g_unit_vector[GREY_NDX].red;
lum.red = lum.green = lum.blue = g_unit_vector[GREY_NDX].red;
}

return trv_color_lum2pixel(&lum);
Expand Down
Loading

0 comments on commit a57610c

Please sign in to comment.