git: 9e8f0f693481 - stable/13 - libc/net/getservent.c: Mark write-only variables as unused
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Dec 2021 00:27:58 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=9e8f0f693481f183d6c4a0cdb218ea22abec2220 commit 9e8f0f693481f183d6c4a0cdb218ea22abec2220 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2021-11-28 03:52:33 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2021-12-06 00:23:44 +0000 libc/net/getservent.c: Mark write-only variables as unused (cherry picked from commit 346eaa41f89aaf1545b89f77a88fd1cdd3c37456) --- lib/libc/net/getservent.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/libc/net/getservent.c b/lib/libc/net/getservent.c index 76db40d96cf5..bcb9f8ff8b84 100644 --- a/lib/libc/net/getservent.c +++ b/lib/libc/net/getservent.c @@ -947,12 +947,12 @@ int serv_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *name; - char *proto; - int port; + char *name __unused; + char *proto __unused; + int port __unused; struct servent *serv; - char *orig_buf; - size_t orig_buf_size; + char *orig_buf __unused; + size_t orig_buf_size __unused; struct servent new_serv; size_t desired_size; @@ -1048,9 +1048,9 @@ int serv_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *name; - char *proto; - int port; + char *name __unused; + char *proto __unused; + int port __unused; struct servent *serv; char *orig_buf; char *p;