title: How to read data into a time_t variable using scanf()?
body: <p>This code gives me warnings:</p>
  
  <pre><code>$ cat test.c
  #include&lt;stdio.h&gt;
  #include&lt;time.h&gt;
  
  int main() {
  
      time_t t;
      scanf("%lld", &amp;t);
      printf("%lld\n", t);
      return 0;
  }
  $ gcc test.c -o test
  test.c: In function ‘main’:
  test.c:7: warning: format ‘%lld’ expects type ‘long long int *’, but argument 2 has type ‘time_t *’
  test.c:8: warning: format ‘%lld’ expects type ‘long long int’, but argument 2 has type ‘time_t’
  $ 
  </code></pre>
  
  <p>Apart from the warnings, the code works as expected.</p>
  
  <p>What should I do to not get the warnings on compilation (no compiler pragma tricks please)?</p>