title: warning:assignment makes pointer from integer without a cast
body: <p>Its quite a common question but I have not got my answer so asking it again.</p>
  
  <p>I have structers defined as:</p>
  
  <pre><code>struct f_lock{
                int x;
                struct f_lock *next;
       };
  </code></pre>
  
  <p>Then say I have a function:</p>
  
  <pre><code>struct f_lock *new_node()
  {
     struct f_lock *new_f_lock;
     .....
     return new_f_lock;
  }
  </code></pre>
  
  <p>Which I call from another function:</p>
  
  <pre><code>struct f_lock *new_f_lock;
  new_f_lock = new_node(); //This line gives the error warning:assignment makes pointer from integer without a cast
  </code></pre>
  
  <p>Would be grateull for help
  Thanks       </p>