Skip to content

Commit

Permalink
Put restrict qualifers in strvec_join function pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
AreaZR authored and millert committed Sep 21, 2024
1 parent 131e7e2 commit 77672d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/sudoers/strvec_join.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* char. If non-NULL, the copy function must have strlcpy-like semantics.
*/
char *
strvec_join(char *const argv[], char sep, size_t (*cpy)(char *, const char *, size_t))
strvec_join(char *const argv[], char sep, size_t (*cpy)(char * restrict, const char * restrict, size_t))
{
char *dst, *result = NULL;
char *const *av;
Expand Down
4 changes: 2 additions & 2 deletions plugins/sudoers/sudoers.h
Original file line number Diff line number Diff line change
Expand Up @@ -496,10 +496,10 @@ void canon_path_free(char *resolved);
void canon_path_free_cache(void);

/* strlcpy_unesc.c */
size_t strlcpy_unescape(char *restrict dst, const char *restrict src, size_t size);
size_t strlcpy_unescape(char * restrict dst, const char * restrict src, size_t size);

/* strvec_join.c */
char *strvec_join(char *const argv[], char sep, size_t (*cpy)(char *, const char *, size_t));
char *strvec_join(char *const argv[], char sep, size_t (*cpy)(char * restrict, const char * restrict, size_t));

/* unesc_str.c */
void unescape_string(char *str);
Expand Down

0 comments on commit 77672d8

Please sign in to comment.