lib/: fgetsx(): Use ATTR_ACCESS() instead of /*@out@*/

Link: <https://splint.org/manual/manual.html#undefined>
Cc: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2023-12-11 14:10:38 +01:00
committed by Serge Hallyn
parent a070b84f2e
commit 7c1576cfb6
2 changed files with 4 additions and 2 deletions

View File

@@ -16,7 +16,8 @@
#ident "$Id$"
/*@null@*/char *fgetsx (/*@returned@*/ /*@out@*/char *buf, int cnt, FILE * f)
/*@null@*/char *
fgetsx(/*@returned@*/char *buf, int cnt, FILE * f)
{
char *cp = buf;
char *ep;

View File

@@ -175,7 +175,8 @@ extern int get_uid (const char *uidstr, uid_t *uid);
extern int getulong (const char *numstr, /*@out@*/unsigned long *result);
/* fputsx.c */
extern /*@null@*/char *fgetsx (/*@returned@*/ /*@out@*/char *, int, FILE *);
ATTR_ACCESS(write_only, 1, 2)
extern /*@null@*/char *fgetsx(/*@returned@*/char *, int, FILE *);
extern int fputsx (const char *, FILE *);
/* groupio.c */