[cyrus-sasl-2.1.22] void arithmetic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

AFAIK arithmetic with void data is not ANSI, it is a gcc extension. The HP compiler bombs here.

Olaf
--- cyrus-sasl-2.1.22/lib/common.c~	2006-04-19 20:39:59.000000000 +0200
+++ cyrus-sasl-2.1.22/lib/common.c	2006-11-29 11:11:39.000000000 +0100
@@ -497,7 +497,7 @@
                the conn->oparams.maxoutbuf buffer. */
             /* Note, if next_buf points to the very end of the IOV record,
                it will be reset to NULL below */
-            next_buf = last_invec.iov_base + last_invec.iov_len;
+            next_buf = (char *) last_invec.iov_base + last_invec.iov_len;
             /* Note - remainder_len is how many bytes left to be encoded in
                the current IOV slot. */
             remainder_len = (total_size + invec[i].iov_len) - conn->oparams.maxoutbuf;
@@ -513,7 +513,7 @@
 
                 /* Note, if next_buf points to the very end of the IOV record,
                    it will be reset to NULL below */
-                next_buf = last_invec.iov_base + last_invec.iov_len;
+                next_buf = (char *) last_invec.iov_base + last_invec.iov_len;
                 remainder_len = remainder_len - conn->oparams.maxoutbuf;
 
                 result = _sasl_encodev (conn,
begin:vcard
fn:Dr. Olaf Flebbe
n:Flebbe;Olaf
org:science+computing ag;Software Solutions
adr;quoted-printable:;;Hagellocher Weg 73;T=C3=BCbingen;;72070;Germany
email;internet:o.flebbe@xxxxxxxxxxxxxxxxxxxx
title:Leiter Softwareentwicklung
tel;work:+49 7071 9457 254
tel;fax:+49 7071 9457 511
x-mozilla-html:FALSE
url:http://www.science-computing.de
version:2.1
end:vcard


[Index of Archives]     [Info Cyrus]     [Squirrel Mail]     [Linux Media]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux