diff --git a/lib/getlong.c b/lib/getlong.c index 1f85f288..4c6e376c 100644 --- a/lib/getlong.c +++ b/lib/getlong.c @@ -21,7 +21,7 @@ * It supports decimal, hexadecimal or octal representations. */ int -getlong(const char *numstr, /*@out@*/long *result) +getlong(const char *numstr, long *result) { char *endptr; long val; diff --git a/lib/getulong.c b/lib/getulong.c index 613c657b..69052555 100644 --- a/lib/getulong.c +++ b/lib/getulong.c @@ -21,7 +21,7 @@ * It supports decimal, hexadecimal or octal representations. */ int -getulong(const char *numstr, /*@out@*/unsigned long *result) +getulong(const char *numstr, unsigned long *result) { char *endptr; unsigned long val; diff --git a/lib/prototypes.h b/lib/prototypes.h index 804ad96f..4ba94364 100644 --- a/lib/prototypes.h +++ b/lib/prototypes.h @@ -153,7 +153,8 @@ extern int get_gid (const char *gidstr, gid_t *gid); extern /*@only@*//*@null@*/struct group *getgr_nam_gid (/*@null@*/const char *grname); /* getlong.c */ -extern int getlong (const char *numstr, /*@out@*/long *result); +ATTR_ACCESS(write_only, 2) +extern int getlong(const char *numstr, long *result); /* get_pid.c */ extern int get_pid (const char *pidstr, pid_t *pid); @@ -172,7 +173,8 @@ extern time_t gettime (void); extern int get_uid (const char *uidstr, uid_t *uid); /* getulong.c */ -extern int getulong (const char *numstr, /*@out@*/unsigned long *result); +ATTR_ACCESS(write_only, 2) +extern int getulong(const char *numstr, unsigned long *result); /* fputsx.c */ ATTR_ACCESS(write_only, 1, 2)