From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mt3Fn-0005n6-LW for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:46:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mt3Fj-0005jU-4v for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:46:15 -0400 Received: from [199.232.76.173] (port=44810 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mt3Fi-0005jJ-WB for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:46:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46949) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mt3Fi-0006V3-9D for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:46:10 -0400 Date: Wed, 30 Sep 2009 19:44:11 +0200 From: "Michael S. Tsirkin" Message-ID: <20090930174411.GG1399@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] [PATCH 06/13] twl92230: fix old style increment/decrement usage List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org Modern compilers do not parse "=-" as decrement: you must use "-=" for that. Same for "=+"/"+=". Signed-off-by: Michael S. Tsirkin --- hw/twl92230.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/twl92230.c b/hw/twl92230.c index b15a8bf..68fab88 100644 --- a/hw/twl92230.c +++ b/hw/twl92230.c @@ -73,14 +73,14 @@ static inline void menelaus_update(MenelausState *s) static inline void menelaus_rtc_start(MenelausState *s) { - s->rtc.next =+ qemu_get_clock(rt_clock); + s->rtc.next += qemu_get_clock(rt_clock); qemu_mod_timer(s->rtc.hz_tm, s->rtc.next); } static inline void menelaus_rtc_stop(MenelausState *s) { qemu_del_timer(s->rtc.hz_tm); - s->rtc.next =- qemu_get_clock(rt_clock); + s->rtc.next -= qemu_get_clock(rt_clock); if (s->rtc.next < 1) s->rtc.next = 1; } -- 1.6.5.rc2