public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/schwab/ilp32] aarch64: Fix bits/utmp.h for GCC 8
@ 2020-02-23 14:18 Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2020-02-23 14:18 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=85c7602f72b526723c59a17fb6c4bbb7578d1c7b

commit 85c7602f72b526723c59a17fb6c4bbb7578d1c7b
Author: Andreas Schwab <schwab@suse.de>
Date:   Sun Feb 23 15:17:11 2020 +0100

    aarch64: Fix bits/utmp.h for GCC 8

Diff:
---
 sysdeps/unix/sysv/linux/aarch64/bits/utmp.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/utmp.h b/sysdeps/unix/sysv/linux/aarch64/bits/utmp.h
index 027dceb..9958fe5 100644
--- a/sysdeps/unix/sysv/linux/aarch64/bits/utmp.h
+++ b/sysdeps/unix/sysv/linux/aarch64/bits/utmp.h
@@ -1,7 +1,7 @@
 /* The `struct utmp' type, describing entries in the utmp file.
    Linux/AArch64 version.
 
-   Copyright (C) 2017 Free Software Foundation, Inc.
+   Copyright (C) 2020 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -16,7 +16,7 @@
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
+   <https://www.gnu.org/licenses/>.  */
 
 #ifndef _UTMP_H
 # error "Never include <bits/utmp.h> directly; use <utmp.h> instead."
@@ -63,7 +63,8 @@ struct utmp
   pid_t ut_pid;			/* Process ID of login process.  */
   char ut_line[UT_LINESIZE]
      __attribute_nonstring__;	/* Devicename.  */
-  char ut_id[4];		/* Inittab ID.  */
+  char ut_id[4]
+     __attribute_nonstring__;	/* Inittab ID.  */
   char ut_user[UT_NAMESIZE]
      __attribute_nonstring__;	/* Username.  */
   char ut_host[UT_HOSTSIZE]


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [glibc/schwab/ilp32] aarch64: Fix bits/utmp.h for GCC 8
@ 2020-02-15 21:39 Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2020-02-15 21:39 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d6474fc13a521e91118394a96c9f1d70b5af8a3e

commit d6474fc13a521e91118394a96c9f1d70b5af8a3e
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Wed Feb 21 15:51:22 2018 +0000

    aarch64: Fix bits/utmp.h for GCC 8
    
    The same suppression of -Wstringop-truncation warnings as in commit
    7532837d7b03b3ca5b9a63d77a5bd81dd23f3d9c but for aarch64.
    
    2018-02-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
    
    	* sysdeps/unix/sysv/linux/aarch64/bits/utmp.h (struct utmp): Use
    	__attribute_nonstring__.

Diff:
---
 sysdeps/unix/sysv/linux/aarch64/bits/utmp.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/utmp.h b/sysdeps/unix/sysv/linux/aarch64/bits/utmp.h
index 8505175..027dceb 100644
--- a/sysdeps/unix/sysv/linux/aarch64/bits/utmp.h
+++ b/sysdeps/unix/sysv/linux/aarch64/bits/utmp.h
@@ -61,10 +61,13 @@ struct utmp
 {
   short int ut_type;		/* Type of login.  */
   pid_t ut_pid;			/* Process ID of login process.  */
-  char ut_line[UT_LINESIZE];	/* Devicename.  */
+  char ut_line[UT_LINESIZE]
+     __attribute_nonstring__;	/* Devicename.  */
   char ut_id[4];		/* Inittab ID.  */
-  char ut_user[UT_NAMESIZE];	/* Username.  */
-  char ut_host[UT_HOSTSIZE];	/* Hostname for remote login.  */
+  char ut_user[UT_NAMESIZE]
+     __attribute_nonstring__;	/* Username.  */
+  char ut_host[UT_HOSTSIZE]
+     __attribute_nonstring__;	/* Hostname for remote login.  */
   struct exit_status ut_exit;	/* Exit status of a process marked
 				   as DEAD_PROCESS.  */
 /* The ut_session and ut_tv fields must be the same size when compiled


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-23 14:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-23 14:18 [glibc/schwab/ilp32] aarch64: Fix bits/utmp.h for GCC 8 Andreas Schwab
  -- strict thread matches above, loose matches on Subject: below --
2020-02-15 21:39 Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).