From 5c610205419add4422f9d4a97097248a42a4c51d Mon Sep 17 00:00:00 2001 From: garenchan <1412950785@qq.com> Date: Wed, 28 Nov 2018 18:33:13 +0800 Subject: [PATCH] 'strings' should be 'string'. --- 21-shell/libc/string.h | 4 ++-- 22-malloc/README.md | 2 +- 22-malloc/libc/string.h | 4 ++-- 23-fixes/libc/string.h | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/21-shell/libc/string.h b/21-shell/libc/string.h index 75f2d1b..0e7942d 100644 --- a/21-shell/libc/string.h +++ b/21-shell/libc/string.h @@ -1,5 +1,5 @@ -#ifndef STRINGS_H -#define STRINGS_H +#ifndef STRING_H +#define STRING_H void int_to_ascii(int n, char str[]); void reverse(char s[]); diff --git a/22-malloc/README.md b/22-malloc/README.md index da2ed0f..99dc482 100644 --- a/22-malloc/README.md +++ b/22-malloc/README.md @@ -15,7 +15,7 @@ our first page starts at 0x10000 (as hardcoded on `mem.c`) and subsequent `kmalloc()`'s produce a new address which is aligned 4096 bytes or 0x1000 from the previous one. -Note that we added a new `strings.c:hex_to_ascii()` for +Note that we added a new `string.c:hex_to_ascii()` for nicer printing of hex numbers. Another cosmetic modification is to rename `types.c` to diff --git a/22-malloc/libc/string.h b/22-malloc/libc/string.h index 39f3969..b958faa 100644 --- a/22-malloc/libc/string.h +++ b/22-malloc/libc/string.h @@ -1,5 +1,5 @@ -#ifndef STRINGS_H -#define STRINGS_H +#ifndef STRING_H +#define STRING_H void int_to_ascii(int n, char str[]); void hex_to_ascii(int n, char str[]); diff --git a/23-fixes/libc/string.h b/23-fixes/libc/string.h index 39f3969..b958faa 100644 --- a/23-fixes/libc/string.h +++ b/23-fixes/libc/string.h @@ -1,5 +1,5 @@ -#ifndef STRINGS_H -#define STRINGS_H +#ifndef STRING_H +#define STRING_H void int_to_ascii(int n, char str[]); void hex_to_ascii(int n, char str[]);