diff options
Diffstat (limited to 'libbb/get_last_path_component.c')
-rw-r--r-- | libbb/get_last_path_component.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/get_last_path_component.c b/libbb/get_last_path_component.c index 0f602157d..7c99116e9 100644 --- a/libbb/get_last_path_component.c +++ b/libbb/get_last_path_component.c | |||
@@ -14,7 +14,7 @@ | |||
14 | * "abc/def" -> "def" | 14 | * "abc/def" -> "def" |
15 | * "abc/def/" -> "" | 15 | * "abc/def/" -> "" |
16 | */ | 16 | */ |
17 | char *bb_get_last_path_component_nostrip(const char *path) | 17 | char* FAST_FUNC bb_get_last_path_component_nostrip(const char *path) |
18 | { | 18 | { |
19 | char *slash = strrchr(path, '/'); | 19 | char *slash = strrchr(path, '/'); |
20 | 20 | ||
@@ -30,7 +30,7 @@ char *bb_get_last_path_component_nostrip(const char *path) | |||
30 | * "abc/def" -> "def" | 30 | * "abc/def" -> "def" |
31 | * "abc/def/" -> "def" !! | 31 | * "abc/def/" -> "def" !! |
32 | */ | 32 | */ |
33 | char *bb_get_last_path_component_strip(char *path) | 33 | char* FAST_FUNC bb_get_last_path_component_strip(char *path) |
34 | { | 34 | { |
35 | char *slash = last_char_is(path, '/'); | 35 | char *slash = last_char_is(path, '/'); |
36 | 36 | ||