Attempt to fix a compiler warning on Haiku.
(if this works...Haiku generates no warnings. I know, right?!?)
This commit is contained in:
parent
8ff1d6b620
commit
a5362aa7e7
1 changed files with 3 additions and 2 deletions
|
@ -55,11 +55,12 @@ char *SDLTest_TimestampToString(const time_t timestamp)
|
||||||
time_t copy;
|
time_t copy;
|
||||||
static char buffer[64];
|
static char buffer[64];
|
||||||
struct tm *local;
|
struct tm *local;
|
||||||
|
const char *fmt = "%x %X";
|
||||||
|
|
||||||
SDL_memset(buffer, 0, sizeof(buffer));\
|
SDL_memset(buffer, 0, sizeof(buffer));
|
||||||
copy = timestamp;
|
copy = timestamp;
|
||||||
local = localtime(©);
|
local = localtime(©);
|
||||||
strftime(buffer, sizeof(buffer), "%x %X", local);
|
strftime(buffer, sizeof(buffer), fmt, local);
|
||||||
|
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue