title: Any specific reason why localtime throws warning with struct tm* & stat* , in linux ?
body: <p>I have this simple code (part of a project) : </p>
  
  <pre><code>void displayFileProperties(struct stat* file,char*  outputProperties , char * path)
  {
  
      struct tm* time;
  
          // code 
          // code
          time = localtime(&amp;file-&gt;st_mtim);
  
  
          // code 
  
  }
  </code></pre>
  
  <p>Where eclipse keeps throwing me a warning : </p>
  
  <pre><code>passing argument 1 of ‘localtime’ from incompatible pointer type [enabled by default]   main.c  /ex4    line 340    C/C++ Problem
  </code></pre>
  
  <p>Any idea how to fix this ? thanks </p>