mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-28 21:07:55 +00:00
Put restrict qualifers in strvec_join function pointer
This commit is contained in:
parent
131e7e2de0
commit
77672d83c4
@ -40,7 +40,7 @@
|
|||||||
* char. If non-NULL, the copy function must have strlcpy-like semantics.
|
* char. If non-NULL, the copy function must have strlcpy-like semantics.
|
||||||
*/
|
*/
|
||||||
char *
|
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 *dst, *result = NULL;
|
||||||
char *const *av;
|
char *const *av;
|
||||||
|
@ -499,7 +499,7 @@ void canon_path_free_cache(void);
|
|||||||
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 */
|
/* 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 */
|
/* unesc_str.c */
|
||||||
void unescape_string(char *str);
|
void unescape_string(char *str);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user