From: Joshua Colp Date: Mon, 18 Jun 2007 21:57:10 +0000 (+0000) Subject: Fix for building on PowerPC under Linux. X-Git-Tag: 1.4.6~88 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c77b8b946739ff18e3c9ef74a6e8514c8195e04d;p=thirdparty%2Fasterisk.git Fix for building on PowerPC under Linux. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69805 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/callerid.c b/main/callerid.c index dfb43c77b6..0ebee03e1a 100644 --- a/main/callerid.c +++ b/main/callerid.c @@ -660,7 +660,8 @@ int callerid_feed(struct callerid_state *cid, unsigned char *ubuf, int len, int default: ast_log(LOG_NOTICE, "Unknown IE %d\n", cid->rawdata[x-1]); } - if(0 > cid->rawdata[x]){ /* Negative offset in the CID Spill */ + res = cid->rawdata[x]; + if (0 > res){ /* Negative offset in the CID Spill */ ast_log(LOG_NOTICE, "IE %d has bad field length of %d at offset %d\n", cid->rawdata[x-1], cid->rawdata[x], x); /* Try again */ cid->sawflag = 0;