<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:wechtc@gmail.com" title="Christopher Wecht <wechtc@gmail.com>"> <span class="fn">Christopher Wecht</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - invalid conversion from 'void*' to 'xt_entry_target*'"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=976">bug 976</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>wechtc@gmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - invalid conversion from 'void*' to 'xt_entry_target*'"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=976#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - invalid conversion from 'void*' to 'xt_entry_target*'"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=976">bug 976</a>
              from <span class="vcard"><a class="email" href="mailto:wechtc@gmail.com" title="Christopher Wecht <wechtc@gmail.com>"> <span class="fn">Christopher Wecht</span></a>
</span></b>
        <pre>There is another problem with this function. Pointer arithmetic  on void
pointers in illegal in either C and C++, it is an extension of GCC:
<a href="https://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Pointer-Arith.html">https://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Pointer-Arith.html</a>

To be compliant to both standards, the expression should look something like
this.

return (xt_entry_target *)((char *)e + e->target_offset);</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>