Skip to content

Commit

Permalink
Fix minor typos in docs and comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
hartmannathan authored and gregory-nutt committed Sep 29, 2019
1 parent e1d262e commit 664e8a1
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@
(2014-2-20).
* nshlib/Kconfig: Use CONFIG_DEFAULT_SMALL in selecting default
settings (2014-2-20).
* nshlib/nsh_telnetd.c: Use strncpy vs strcpy to avoid overruning the
* nshlib/nsh_telnetd.c: Use strncpy vs strcpy to avoid overrunning the
username and password buffers. From Bertold Van den Bergh (2014-2-22).
* nshlib/Kconfig, nsh_proccmds.c: If the CPU load feature and the procfs
features are enabled, then show CPU load used by each thread in the
Expand Down
2 changes: 1 addition & 1 deletion graphics/nxwidgets/src/cnxstring.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ void CNxString::setText(FAR const nxwidget_char_t *text, int nchars)
/**
* Set the text in the string.
*
* @param text Character to to use as the new data for this string.
* @param text Character to use as the new data for this string.
*/

void CNxString::setText(const nxwidget_char_t letter)
Expand Down
2 changes: 1 addition & 1 deletion graphics/nxwidgets/src/ctext.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void CText::setText(FAR const char *text)
/**
* Set the text in the string.
*
* @param text Character to to use as the new data for this string.
* @param text Character to use as the new data for this string.
*/

void CText::setText(const nxwidget_char_t text)
Expand Down
2 changes: 1 addition & 1 deletion graphics/nxwm/src/cnxterm.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ CNxTerm::CNxTerm(CTaskbar *taskbar, CApplicationWindow *window)
m_taskbar = taskbar;
m_window = window;

// The NxTerm is not runing
// The NxTerm is not running

m_pid = -1;
m_nxterm = 0;
Expand Down
2 changes: 1 addition & 1 deletion graphics/nxwm/src/nxwm_main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ static bool createCalibration(void)
return false;
}

// Call StartWindowFactory::create to to create the start window application
// Call StartWindowFactory::create to create the start window application

printf("createCalibration: Creating CCalibration\n");
NxWM::IApplication *calibration = factory->create();
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 @@ -540,7 +540,7 @@ void trv_color_free(struct trv_palette_s *pinfo)
/****************************************************************************
* Name: trv_color_rgb2pixel
* Description: Map a RGB triplet into the corresponding pixel. The
* value range of ech RGB value is assume to lie within 0 through
* value range of each RGB value is assumed to lie within 0 through
* TRV_PIXEL_MAX.
****************************************************************************/

Expand Down
2 changes: 1 addition & 1 deletion graphics/traveler/tools/libwld/wld_rgb2pixel.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
/****************************************************************************
* Name: wld_rgb2pixel
* Description: Map a RGB triplet into the corresponding pixel. The
* value range of ech RGB value is assume to lie within 0 through
* value range of each RGB value is assumed to lie within 0 through
* TRV_PIXEL_MAX.
****************************************************************************/

Expand Down
6 changes: 3 additions & 3 deletions graphics/traveler/tools/tcledit/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ Build instuctions
Then you can use xmfmk to create the Makefile and build the tool:

7. cd apps/graphics/traveler/tools/tcledit
8. Review Imakefile. You will probabaly to to change the APPDIR and TOPDIR paths
a minimum. These are the paths to where you have clones the apps/ repository
and the nuttx/ repositories, respectively.
8. Review Imakefile. You will probabaly need to change the APPDIR and
TOPDIR paths at a minimum. These are the paths to where you have
cloned the apps/ repository and the nuttx/ repositories, respectively.
9. xmfmk
10a. make tcledit

Expand Down
2 changes: 1 addition & 1 deletion graphics/twm4nx/apps/cclock.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ void CClock::update(void)
pos.y = CONFIG_TWM4NX_CLOCK_VSPACING;

// Then show each segment LCD
// There might be a more efficient way to to this than to erase the entire
// There might be a more efficient way to do this than to erase the entire
// SLCD on each update.

for (int i = 0; i < CLOCK_NDIGITS; i++)
Expand Down
6 changes: 3 additions & 3 deletions graphics/twm4nx/src/ciconwidget.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ bool CIconWidget::initialize(FAR CWindow *parent,
image->setRaisesEvents(true);
image->setDraggable(true);

// Add the CIconImage to to the containing widget
// Add the CIconImage to the containing widget

image->addWidgetEventHandler(this);
addWidget(image);
Expand Down Expand Up @@ -332,7 +332,7 @@ bool CIconWidget::initialize(FAR CWindow *parent,
topLabel->setRaisesEvents(true);
topLabel->setDraggable(true);

// Add the top label to to the containing widget
// Add the top label to the containing widget

topLabel->addWidgetEventHandler(this);
addWidget(topLabel);
Expand Down Expand Up @@ -378,7 +378,7 @@ bool CIconWidget::initialize(FAR CWindow *parent,
bottomLabel->setRaisesEvents(true);
bottomLabel->setDraggable(true);

// Add the top label to to the containing widget
// Add the top label to the containing widget

bottomLabel->addWidgetEventHandler(this);
addWidget(bottomLabel);
Expand Down
2 changes: 1 addition & 1 deletion include/graphics/nxwidgets/cnxstring.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ namespace NXWidgets
/**
* Set the 8-bit C-string text in the string.
*
* @param text Character to to use as the new data for this string.
* @param text Character to use as the new data for this string.
*/

void setText(const nxwidget_char_t text);
Expand Down
2 changes: 1 addition & 1 deletion include/graphics/nxwidgets/ctext.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ namespace NXWidgets
/**
* Set the text in the string.
*
* @param text Character to to use as the new data for this string.
* @param text Character to use as the new data for this string.
*/

virtual void setText(const nxwidget_char_t text);
Expand Down
2 changes: 1 addition & 1 deletion netutils/dhcpd/dhcpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static inline void dhcpd_arpupdate(FAR uint8_t *ipaddr, FAR uint8_t *hwaddr)
{
struct sockaddr_in inaddr;

/* Put the protocol address in a standard form. ipaddr is assume to be in
/* Put the protocol address in a standard form. ipaddr is assumed to be in
* network order by the memcpy.
*/

Expand Down
2 changes: 1 addition & 1 deletion netutils/ftpc/ftpc_listdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ FAR struct ftpc_dirlist_s *ftpc_listdir(SESSION handle,
int tmpret = ftpc_cmd(session, "CWD %s", session->currdir);
if (tmpret != OK)
{
nerr("ERROR: CWD back to to %s failed\n", session->currdir);
nerr("ERROR: CWD back to %s failed\n", session->currdir);
}
}

Expand Down
2 changes: 1 addition & 1 deletion system/zmodem/zm.h
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ ssize_t zm_remwrite(int fd, FAR const uint8_t *buffer, size_t buflen);
* necessary.
*
* NOTE: Not re-entrant. CR-LF sequences that span buffer boundaries are
* not guaranteed to to be handled correctly.
* not guaranteed to be handled correctly.
*
****************************************************************************/

Expand Down
2 changes: 1 addition & 1 deletion system/zmodem/zm_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ static int zms_zrinit(FAR struct zm_state_s *pzm)
}
#endif

/* Otherwise, we have to to ZCRCW */
/* Otherwise, we have to do ZCRCW */

else
{
Expand Down
2 changes: 1 addition & 1 deletion system/zmodem/zm_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ int zm_putc(int fd, uint8_t ch)
* necessary.
*
* NOTE: Not re-entrant. CR-LF sequences that span buffer boundaries are
* not guaranteed to to be handled correctly.
* not guaranteed to be handled correctly.
*
****************************************************************************/

Expand Down

0 comments on commit 664e8a1

Please sign in to comment.