Whamcloud - gitweb
LU-16335 build: remove _GNU_SOURCE dependency in lustre_user.h
[fs/lustre-release.git] / lustre / include / uapi / linux / lustre / lustre_user.h
index 1b1e60a..36e1e70 100644 (file)
@@ -2033,7 +2033,11 @@ static inline char *changelog_rec_name(const struct changelog_rec *rec)
 
 static inline char *changelog_rec_sname(const struct changelog_rec *rec)
 {
-       return strchrnul(changelog_rec_name(rec), '\0') + 1;
+       char *str = changelog_rec_name(rec);
+
+       while (*str != '\0')
+               str++;
+       return str + 1;
 }
 
 static inline __kernel_size_t changelog_rec_snamelen(const struct changelog_rec *rec)