<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 29, 2015 at 5:57 PM, David T. Lewis <span dir="ltr">&lt;<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br>
On Thu, Jan 29, 2015 at 05:31:02PM -0800, Eliot Miranda wrote:<br>
&gt;<br>
&gt; Hi David,<br>
&gt;<br>
&gt;     you might look at latforms/unix/plugins/SqueakSSL/sqUnixOpenSSL.c in<br>
&gt; the Cog branch.  It uses e.g.<br>
&gt;<br>
&gt; if(ssl-&gt;loglevel) printf(&quot;sqAcceptSSL: cert = %p\n&quot;, cert);<br>
&gt;<br>
&gt; instead of<br>
&gt;<br>
&gt; if(ssl-&gt;loglevel) printf(&quot;sqAcceptSSL: cert = %lx\n&quot;, (long)cert);<br>
&gt;<br>
&gt; which is preferrable, as cert is a pointer.  The Cog version definitely<br>
&gt; compiles on 64-bit; I&#39;m running a 64-bit Spur Stack VM regularly.<br>
<br>
</span>Thanks, that looks much better, but:<br>
<br>
/home/lewis/squeak/VM/platforms/unix/plugins/SqueakSSL/sqUnixOpenSSL.c:175:2: warning: format ‘%p’ expects argument of type ‘void *’, but argument 2 has type ‘sqInt’ [-Wformat=]<br>
  if(ssl-&gt;loglevel) printf(&quot;sqConnectSSL: BIO_write %p bytes\n&quot;, srcLen);<br></blockquote><div><br></div><div>Thanks David, in Cog thsi now reads &quot;printf(&quot;sqEncryptSSL: Encrypting %ld bytes\n&quot;, srcLen);&quot;</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
  ^<br>
<br>
So some further type declarations may be required.<br>
<br>
The issue I was dealing with was sizeof(sqInt) == 8, but declaring pointers<br>
properly in both the slang and platforms code is probably also needed.<br>
<br>
I will try to follow up in it this weekend.<br>
<br>
Thanks,<br>
Dave<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">best,<div>Eliot</div></div>
</div></div>