zardus / preeny

Some helpful preload libraries for pwning stuff.
BSD 2-Clause "Simplified" License
1.56k stars 171 forks source link

Fix compilation warning #66

Closed andronat closed 4 years ago

andronat commented 4 years ago

GCC 9 was complaining with the following

time.c: In function ‘main’:
time.c:11:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
   11 |  printf("Time: %d\n", time(0));
      |                ~^     ~~~~~~~
      |                 |     |
      |                 int   time_t {aka long int}
      |                %ld
zardus commented 4 years ago

Thank you