title: Previous declaration of ___ was here?
body: <pre><code>void delete_node(node_t *p, void *item) {
  
      while(p -&gt; next != NULL &amp;&amp; (p-&gt;next)-&gt; item != item) {
          p = p -&gt; next;
      }
  
      if (p -&gt; next == NULL) {
          printf ("The element you are searching for is not in the list\n");  
      }
  
      node_t *temp;
      temp = p -&gt; next;
      p -&gt; next = temp -&gt; next;
      temp -&gt; prev = p;
      free(temp);
  }
  </code></pre>
  
  <p>I have this code in a .c file.</p>
  
  <pre><code>void delete_node(node_t *p, void *item);
  </code></pre>
  
  <p>This prototype is in a .h file and I get an error that says "conflicting types for delete_node" and "previous declaration of delete_node was here" and I do not know why. </p>
  
  <p>Any help would be appreciated. Thanks!!</p>
  
  <p>This is my node_t struct:</p>
  
  <pre><code>typedef struct node {
      void *item;
      struct node *next;
      struct node *prev;
  } node_t;
  </code></pre>