public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* Re: [PATCH] libelf: Use mempcpy not __mempcpy.
@ 2014-11-12 21:36 Roland McGrath
  0 siblings, 0 replies; 3+ messages in thread
From: Roland McGrath @ 2014-11-12 21:36 UTC (permalink / raw)
  To: elfutils-devel

[-- Attachment #1: Type: text/plain, Size: 14 bytes --]

That's fine.

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

* Re: [PATCH] libelf: Use mempcpy not __mempcpy.
@ 2014-11-13 14:38 Mark Wielaard
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Wielaard @ 2014-11-13 14:38 UTC (permalink / raw)
  To: elfutils-devel

[-- Attachment #1: Type: text/plain, Size: 103 bytes --]

On Wed, 2014-11-12 at 13:36 -0800, Roland McGrath wrote:
> That's fine.

Thanks, pushed to master.

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

* [PATCH] libelf: Use mempcpy not __mempcpy.
@ 2014-11-08 15:21 Mark Wielaard
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Wielaard @ 2014-11-08 15:21 UTC (permalink / raw)
  To: elfutils-devel

[-- Attachment #1: Type: text/plain, Size: 1550 bytes --]

We were using mempcpy everywhere else, only __libelf_next_arhdr_wrlock used
__mempcpy.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
---
 libelf/ChangeLog   | 4 ++++
 libelf/elf_begin.c | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/libelf/ChangeLog b/libelf/ChangeLog
index dd0a755..a9d8c6f 100644
--- a/libelf/ChangeLog
+++ b/libelf/ChangeLog
@@ -1,3 +1,7 @@
+2014-11-08  Mark Wielaard  <mjw@redhat.com>
+
+	* elf_begin.c (__libelf_next_arhdr_wrlock): Use mempcpy not __mempcpy.
+
 2014-11-07  Mark Wielaard  <mjw@redhat.com>
 
 	* elf_begin.c (file_read_elf): Correct sh_size check.
diff --git a/libelf/elf_begin.c b/libelf/elf_begin.c
index 5525a3b..d135dea 100644
--- a/libelf/elf_begin.c
+++ b/libelf/elf_begin.c
@@ -799,7 +799,7 @@ __libelf_next_arhdr_wrlock (elf)
     }
 
   /* Copy the raw name over to a NUL terminated buffer.  */
-  *((char *) __mempcpy (elf->state.ar.raw_name, ar_hdr->ar_name, 16)) = '\0';
+  *((char *) mempcpy (elf->state.ar.raw_name, ar_hdr->ar_name, 16)) = '\0';
 
   elf_ar_hdr = &elf->state.ar.elf_ar_hdr;
 
@@ -895,7 +895,7 @@ __libelf_next_arhdr_wrlock (elf)
       const char *string = ar_hdr->FIELD;				      \
       if (ar_hdr->FIELD[sizeof (ar_hdr->FIELD) - 1] != ' ')		      \
 	{								      \
-	  *((char *) __mempcpy (buf, ar_hdr->FIELD, sizeof (ar_hdr->FIELD)))  \
+	  *((char *) mempcpy (buf, ar_hdr->FIELD, sizeof (ar_hdr->FIELD)))  \
 	    = '\0';							      \
 	  string = buf;							      \
 	}								      \
-- 
1.9.3


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

end of thread, other threads:[~2014-11-13 14:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-12 21:36 [PATCH] libelf: Use mempcpy not __mempcpy Roland McGrath
  -- strict thread matches above, loose matches on Subject: below --
2014-11-13 14:38 Mark Wielaard
2014-11-08 15:21 Mark Wielaard

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).