From: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] 82550_eeprom: Fix error: lvalue required as increment operand
Date: Sat, 17 May 2008 19:48:21 +0200 [thread overview]
Message-ID: <010901c8b846$32bb8230$98328690$@Tjernlund@transmode.se> (raw)
In-Reply-To: <1211028201-7152-1-git-send-email-plagnioj@jcrosoft.com>
> -----Original Message-----
> From: u-boot-users-bounces at lists.sourceforge.net [mailto:u-boot-users-bounces at lists.sourceforge.net]
> On Behalf Of Jean-Christophe PLAGNIOL-VILLARD
> Sent: den 17 maj 2008 14:43
> To: u-boot-users at lists.sourceforge.net
> Subject: [U-Boot-Users] [PATCH] 82550_eeprom: Fix error: lvalue required as increment operand
>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ---
> examples/82559_eeprom.c | 11 ++++++++---
> 1 files changed, 8 insertions(+), 3 deletions(-)
>
> diff --git a/examples/82559_eeprom.c b/examples/82559_eeprom.c
> index 1a121d4..a56edd4 100644
> --- a/examples/82559_eeprom.c
> +++ b/examples/82559_eeprom.c
> @@ -53,9 +53,14 @@ static inline unsigned short swap16(unsigned short x)
>
> static inline void *memcpy(void *dst, const void *src, unsigned int len)
> {
> - void * ret = dst;
> - while (len-- > 0) *((char *)dst)++ = *((char *)src)++;
> - return ret;
> + char * ret = dst;
> +
> + while (len-- > 0) {
> + *ret++ = *((char *)src);
> + src++;
> + }
> +
> + return (void *)ret;
return dst;
next prev parent reply other threads:[~2008-05-17 17:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-17 12:43 [U-Boot-Users] [PATCH] 82550_eeprom: Fix error: lvalue required as increment operand Jean-Christophe PLAGNIOL-VILLARD
2008-05-17 17:48 ` Joakim Tjernlund [this message]
2008-05-18 20:50 ` Wolfgang Denk
2008-05-18 20:49 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='010901c8b846$32bb8230$98328690$@Tjernlund@transmode.se' \
--to=joakim.tjernlund@transmode.se \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox