git: 0d9e8c286df6 - main - Change strmode argument type to mode_t for crossbuild

Warner Losh imp at FreeBSD.org
Tue Jun 29 23:41:21 UTC 2021


The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=0d9e8c286df6cdda1fe53baf3339f0db7acdaafd

commit 0d9e8c286df6cdda1fe53baf3339f0db7acdaafd
Author:     Alfonso Gregory <gfunni234 at gmail.com>
AuthorDate: 2021-06-25 15:30:57 +0000
Commit:     Warner Losh <imp at FreeBSD.org>
CommitDate: 2021-06-29 23:39:55 +0000

    Change strmode argument type to mode_t for crossbuild
    
    To match the libc changes.
    
    Reviewed by:    imp@
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/493
---
 tools/build/cross-build/include/linux/string.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/build/cross-build/include/linux/string.h b/tools/build/cross-build/include/linux/string.h
index 485cc2b680b5..1d173974a5bd 100644
--- a/tools/build/cross-build/include/linux/string.h
+++ b/tools/build/cross-build/include/linux/string.h
@@ -52,7 +52,7 @@ __BEGIN_DECLS
 size_t strlcpy(char *dst, const char *src, size_t siz);
 size_t strlcat(char *dst, const char *src, size_t siz);
 char *strnstr(const char *str, const char *find, size_t str_len);
-void strmode(/* mode_t*/ int mode, char *str);
+void strmode(mode_t mode, char *str);
 
 #if !defined(__GLIBC__) || \
     (defined(__GLIBC__) && (!__GLIBC_PREREQ(2, 25) || !defined(_GNU_SOURCE)))


More information about the dev-commits-src-all mailing list