title: Warning when using qsort in C
body: <p>I wrote my comparison function</p>
  
  <pre><code>int cmp(const int * a,const int * b)
   {
     if (*a==*b)
     return 0;
  else
    if (*a &lt; *b)
      return -1;
  else
      return 1;
  }
  </code></pre>
  
  <p>and i have my declaration</p>
  
  <pre><code>int cmp (const int * value1,const int * value2);
  </code></pre>
  
  <p>and I'm calling qsort in my program like so</p>
  
  <pre><code>qsort(currentCases,round,sizeof(int),cmp);
  </code></pre>
  
  <p>when i compile it I get the following warning</p>
  
  <pre><code>warning: passing argument 4 of ‘qsort’ from incompatible pointer type
  /usr/include/stdlib.h:710: note: expected ‘__compar_fn_t’ but argument is of type ‘int
  (*)(const int *, const int *)’
  </code></pre>
  
  <p>The program works just fine so my only concern is why it doesn't like the way im using that?</p>