title: invalid conversion from `void*' to `char*' when using malloc?
body: <p>I'm having trouble with the code below with the error on line 5:</p>
  
  <blockquote>
    <p>error: invalid conversion from <code>void*</code> to <code>char*</code></p>
  </blockquote>
  
  <p>I'm using g++ with codeblocks and I tried to compile this file as a cpp file. Does it matter?</p>
  
  <pre><code>#include &lt;openssl/crypto.h&gt;
  int main()
  {
      char *foo = malloc(1);
      if (!foo) {
          printf("malloc()");
          exit(1);
      }
      OPENSSL_cleanse(foo, 1);
      printf("cleaned one byte\n");
      OPENSSL_cleanse(foo, 0);
      printf("cleaned zero bytes\n");
  }
  </code></pre>