aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorFrederic Bonnard <frediz@linux.vnet.ibm.com>2016-06-13 11:37:09 +0200
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-06-20 15:08:05 +1000
commit4c95b5e04e3c4f72e4005574f67cd6e365d3276f (patch)
tree60763919c97d73efba7a6ffbb2afa3efa05502d4 /libc
parent3aeb50189d4d88528c627e099c76b00e28e5c432 (diff)
downloadskiboot-4c95b5e04e3c4f72e4005574f67cd6e365d3276f.zip
skiboot-4c95b5e04e3c4f72e4005574f67cd6e365d3276f.tar.gz
skiboot-4c95b5e04e3c4f72e4005574f67cd6e365d3276f.tar.bz2
Fix for typos
While reviewing the Debian packaging, codespell found those. Most proposed fixes are based on codespell's default dictionnary. Signed-off-by: Frederic Bonnard <frediz@linux.vnet.ibm.com> Reviewed-by: Mukesh Ojha <mukesh02@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/stdio/vsnprintf.c2
-rw-r--r--libc/time.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdio/vsnprintf.c b/libc/stdio/vsnprintf.c
index b9435b8..fbb84a0 100644
--- a/libc/stdio/vsnprintf.c
+++ b/libc/stdio/vsnprintf.c
@@ -240,7 +240,7 @@ print_format(char **buffer, size_t bufsize, const char *format, void *var)
/*
- * The vsnprintf function prints a formated strings into a buffer.
+ * The vsnprintf function prints a formatted strings into a buffer.
* BUG: buffer size checking does not fully work yet
*/
int
diff --git a/libc/time.c b/libc/time.c
index 9be6e11..3411bdc 100644
--- a/libc/time.c
+++ b/libc/time.c
@@ -57,7 +57,7 @@ struct tm *gmtime_r(const time_t *timep, struct tm *result)
* Work out the year. We subtract one day for every four years
* and every 400 years after 1969. However as leap years don't
* occur every 100 years we add one day back to counteract the
- * the substraction for every 4 years.
+ * the subtraction for every 4 years.
*/
Y = (D - (1+D/365)/4 + (69+D/365)/100 - (369+D/365)/400)/365;