Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libvbr/vbr.c: modernize vbr_strlcpy() signature.
The vbr_strlcpy() function declares that its arguments should live in registers: vbr_strlcpy(dst, src, size) register char *dst; register const char *src; ssize_t size; { ... This makes GCC unhappy when -Werror=strict-prototypes is used: vbr.c:167:1: error: function declaration isn't a prototype [-Werror=strict-prototypes] 167 | vbr_strlcpy(dst, src, size) The "register" keyword is largely obsolete on modern systems anyway, since the compiler is better at determining how to move memory around than the programmer is. So to appease GCC and simplify the code a bit, the signature has been changed to, vbr_strlcpy(char *dst, const char *src, ssize_t size) { ... } changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # On branch configure.ac-c-standard # Your branch is up to date with 'origin/configure.ac-c-standard'. # # Changes to be committed: # modified: libvbr/vbr.c # # Changes not staged for commit: # modified: configure # # Untracked files: # 0000-cover-letter.patch #
- Loading branch information