@@ -347,7 +347,7 @@ sudo_dso_public ssize_t sudo_getdelim(char ** restrict bufp, size_t * restrict b
347347# define getdelim (_a , _b , _c , _d ) sudo_getdelim((_a), (_b), (_c), (_d))
348348#elif defined(HAVE_DECL_GETDELIM ) && !HAVE_DECL_GETDELIM
349349/* getdelim present in libc but missing prototype (old gcc fixed includes?) */
350- ssize_t getdelim (char * * bufp , size_t * bufsizep , int delim , FILE * fp );
350+ ssize_t getdelim (char * * restrict bufp , size_t * restrict bufsizep , int delim , FILE * restrict fp );
351351#endif /* HAVE_GETDELIM */
352352#ifndef HAVE_GETUSERSHELL
353353sudo_dso_public char * sudo_getusershell (void );
@@ -366,20 +366,20 @@ void setusershell(void);
366366void endusershell (void );
367367#endif /* HAVE_GETUSERSHELL */
368368#ifndef HAVE_GMTIME_R
369- sudo_dso_public struct tm * sudo_gmtime_r (const time_t * , struct tm * );
369+ sudo_dso_public struct tm * sudo_gmtime_r (const time_t * restrict , struct tm * restrict );
370370# undef gmtime_r
371371# define gmtime_r (_a , _b ) sudo_gmtime_r((_a), (_b))
372372#endif /* HAVE_GMTIME_R */
373373#ifndef HAVE_LOCALTIME_R
374- sudo_dso_public struct tm * sudo_localtime_r (const time_t * , struct tm * );
374+ sudo_dso_public struct tm * sudo_localtime_r (const time_t * restrict , struct tm * restrict );
375375# undef localtime_r
376376# define localtime_r (_a , _b ) sudo_localtime_r((_a), (_b))
377377#endif /* HAVE_LOCALTIME_R */
378378#ifndef HAVE_TIMEGM
379379sudo_dso_public time_t sudo_timegm (struct tm * );
380380#endif /* HAVE_TIMEGM */
381381#ifndef HAVE_UTIMENSAT
382- sudo_dso_public int sudo_utimensat (int fd , const char * file , const struct timespec * times , int flag );
382+ sudo_dso_public int sudo_utimensat (int fd , const char * file , const struct timespec times [ 2 ] , int flag );
383383# undef utimensat
384384# define utimensat (_a , _b , _c , _d ) sudo_utimensat((_a), (_b), (_c), (_d))
385385#endif /* HAVE_UTIMENSAT */
@@ -389,12 +389,12 @@ sudo_dso_public int sudo_fchmodat(int dfd, const char *path, mode_t mode, int fl
389389# define fchmodat (_a , _b , _c , _d ) sudo_fchmodat((_a), (_b), (_c), (_d))
390390#endif /* HAVE_FCHMODAT */
391391#ifndef HAVE_FSTATAT
392- sudo_dso_public int sudo_fstatat (int dfd , const char * path , struct stat * sb , int flag );
392+ sudo_dso_public int sudo_fstatat (int dfd , const char * restrict path , struct stat * restrict sb , int flag );
393393# undef fstatat
394394# define fstatat (_a , _b , _c , _d ) sudo_fstatat((_a), (_b), (_c), (_d))
395395#endif /* HAVE_FSTATAT */
396396#ifndef HAVE_FUTIMENS
397- sudo_dso_public int sudo_futimens (int fd , const struct timespec * times );
397+ sudo_dso_public int sudo_futimens (int fd , const struct timespec times [ 2 ] );
398398# undef futimens
399399# define futimens (_a , _b ) sudo_futimens((_a), (_b))
400400#endif /* HAVE_FUTIMENS */
@@ -508,12 +508,12 @@ sudo_dso_public int sudo_str2sig(const char *signame, int *signum);
508508# define str2sig (_a , _b ) sudo_str2sig((_a), (_b))
509509#endif /* HAVE_STR2SIG */
510510#if !defined(HAVE_INET_NTOP ) && defined(NEED_INET_NTOP )
511- sudo_dso_public char * sudo_inet_ntop (int af , const void * src , char * dst , socklen_t size );
511+ sudo_dso_public const char * sudo_inet_ntop (int af , const void * restrict src , char * restrict dst , socklen_t size );
512512# undef inet_ntop
513513# define inet_ntop (_a , _b , _c , _d ) sudo_inet_ntop((_a), (_b), (_c), (_d))
514514#endif /* HAVE_INET_NTOP */
515515#ifndef HAVE_INET_PTON
516- sudo_dso_public int sudo_inet_pton (int af , const char * src , void * dst );
516+ sudo_dso_public int sudo_inet_pton (int af , const char * restrict src , void * restrict dst );
517517# undef inet_pton
518518# define inet_pton (_a , _b , _c ) sudo_inet_pton((_a), (_b), (_c))
519519#endif /* HAVE_INET_PTON */
0 commit comments