title: gcc error: two or more data types in declaration specifiers
body: <p>gcc says me:</p>
  
  <pre><code>cc -O3 -Wall -pedantic -g -c init.c
  init.c:6:1: error: two or more data types in declaration specifiers
  init.c: In function 'objinit':
  init.c:24:1: warning: control reaches end of non-void function
  make: *** [init.o] Error 1
  </code></pre>
  
  <p>the code is:</p>
  
  <pre><code>#include "beings.h"
  #include "defs.h"
  #include "funcs.h"
  #include "obj.h"
  
  void objinit(int type, struct object* lstrct){
       switch(type){
               case WALL:
                       lstrct-&gt;image = WALL_IMG;
                       lstrct-&gt;walk = false;
                       lstrct-&gt;price = 0;
               break;
               case WAND:
                       lstrct-&gt;image = WAND_IMG;
                       lstrct-&gt;walk = true;
                       lstrct-&gt;price = 70;
               break;
               case BOOK:
                       lstrct-&gt;image = BOOK_IMG;
                       lstrct-&gt;walk = true;
                       lstrct-&gt;price = 110;
               break;
       }
  }
  </code></pre>
  
  <p>i know, things like WALL_IMG is on a .h separated file, but whats wrong with my code?</p>