From fac3b34ff9ec82c3000385c5b6689e4a17dae983 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Mon, 11 Mar 2013 00:00:00 -0600 Subject: [PATCH] miscellaneous: fixed current misspell-check's findings Reference(s): https://github.com/lyda/misspell-check Signed-off-by: Jim Warner --- Documentation/CodingStyle | 2 +- Documentation/TODO | 2 +- proc/version.c | 2 +- w.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle index e9e2a748..3184e328 100644 --- a/Documentation/CodingStyle +++ b/Documentation/CodingStyle @@ -4,7 +4,7 @@ with others. http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob_plain;f=Documentation/CodingStyle -In addtion to Linux coding style this project has few additional +In addition to Linux coding style this project has few additional wishes to contributors. * Many small patches are favoured over one big. Break down is done on diff --git a/Documentation/TODO b/Documentation/TODO index 5d8934ef..2611b28e 100644 --- a/Documentation/TODO +++ b/Documentation/TODO @@ -29,7 +29,7 @@ Supply data for the ADDR and JOBC fields. Support & supply data for SL and RE. Add a /proc/*/tty symlink to eliminate guessing when /proc/*/fd is -not accessable. +not accessible. Add /proc/*/.bindata files to avoid string parsing. It should be an array of 64-bit values on all machines. New entries go on the end and obsolete diff --git a/proc/version.c b/proc/version.c index 262e4934..7ba4661a 100644 --- a/proc/version.c +++ b/proc/version.c @@ -1,7 +1,7 @@ /* * Suite version information for procps-ng utilities * Copyright (c) 1995 Martin Schulze - * Ammended by cblake to only export the function symbol. + * Amended by cblake to only export the function symbol. * * Modified by Albert Cahalan, ????-2003 * diff --git a/w.c b/w.c index 9e0a043b..27c7d222 100644 --- a/w.c +++ b/w.c @@ -198,7 +198,7 @@ static void print_from(const utmp_t *restrict const u, const int ip_addresses, c if (!inet_ntop(AF_INET6, &ut_addr_v6, buf_ipv6, sizeof(buf_ipv6))) { strcpy(buf, ""); /* invalid address, clean the buffer */ } else { - strncpy(buf, buf_ipv6, fromlen); /* adress valid, copy to buffer */ + strncpy(buf, buf_ipv6, fromlen); /* address valid, copy to buffer */ } } else { /* IPv4 */