Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 5/6] memmove is expected to return dest
- X-seq: zsh-workers 32736
- From: Nikolas Garofil <nikolas@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 5/6] memmove is expected to return dest
- Date: Sat, 7 Jun 2014 19:18:54 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=x27K3dwYRWHmTUzb3b7uIcWwJ8GMo4tjRRgEzXYEXHY=; b=C42HjkaVDA/iW0eUDsBHKj2vm3Tu+L4yElvCbKbcxxEirVuWcAp/Xl/hxiQ/eXtjic nCDnfGvrNYUaoLykfLYZiRsZN2aVnZqxvbBadsU6cduPIL776pdRjGGNMvDcRUafPLJA 8fIwl1aam3uWZpaCRPXbcDztAlzuQjjSkhqOPqqvtXlaIZCPF3mDtHBfuU9QYpR2TZuS n/g2+xMvVrbko0nOaA4GhDJoE7ZxdEpJgt82uekVa+ua4TPTUbIgmev2aGPgK3BZ1oIA G+GzN76n521YmXM5saxFZSmXPn8SIezEhEMOfip3UsXF8VSKLhYfHvuuxXrOuua+Vb+B VUvQ==
- In-reply-to: <1402161535-20756-1-git-send-email-nikolas@garofil.be>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1402161535-20756-1-git-send-email-nikolas@garofil.be>
- Sender: Nikolas Garofil <nikolas.garofil@xxxxxxxxx>
---
Src/zsh_system.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Src/zsh_system.h b/Src/zsh_system.h
index e68fd62..aca76f6 100644
--- a/Src/zsh_system.h
+++ b/Src/zsh_system.h
@@ -708,7 +708,10 @@ struct timezone {
#endif
#ifndef HAVE_MEMMOVE
-# define memmove(dest, src, len) bcopy((src), (dest), (len))
+void *memmove(void *dest, const void *src, size_t n) {
+ bcopy(src, dest, n);
+ return dest;
+}
#endif
#ifndef offsetof
--
1.8.3.2
Messages sorted by:
Reverse Date,
Date,
Thread,
Author