aboutsummaryrefslogtreecommitdiff
path: root/libbb/get_last_path_component.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-08-16 11:19:01 +0100
committerRon Yorston <rmy@pobox.com>2024-08-16 11:19:01 +0100
commit2b00b4311ecf4c6f6331f8c969934fa792f7e15c (patch)
tree78450c22447a1e60cce970b98016ae8de7107336 /libbb/get_last_path_component.c
parent6481bb22b5e6d60909d09cf6179412c4f34b9b3c (diff)
downloadbusybox-w32-2b00b4311ecf4c6f6331f8c969934fa792f7e15c.tar.gz
busybox-w32-2b00b4311ecf4c6f6331f8c969934fa792f7e15c.tar.bz2
busybox-w32-2b00b4311ecf4c6f6331f8c969934fa792f7e15c.zip
win32: code shrink
Add the FAST_FUNC qualifier to several Windows-specific functions. This has no effect in 64-bit builds but saves 336 bytes for 32-bit.
Diffstat (limited to 'libbb/get_last_path_component.c')
-rw-r--r--libbb/get_last_path_component.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/get_last_path_component.c b/libbb/get_last_path_component.c
index 9d017ab7f..46a87d7fc 100644
--- a/libbb/get_last_path_component.c
+++ b/libbb/get_last_path_component.c
@@ -24,7 +24,7 @@ const char* FAST_FUNC bb_basename(const char *name)
24} 24}
25 25
26#if ENABLE_PLATFORM_MINGW32 26#if ENABLE_PLATFORM_MINGW32
27char *get_last_slash(const char *path) 27char * FAST_FUNC get_last_slash(const char *path)
28{ 28{
29 const char *start = path + root_len(path); 29 const char *start = path + root_len(path);
30 char *slash = strrchr(start, '/'); 30 char *slash = strrchr(start, '/');