mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-06 15:30:50 +00:00
Code style: changed "sizeof foo" to "sizeof(foo)" (thanks @sezero!)
This commit is contained in:
parent
ad95c93bf4
commit
c6443d86c9
57 changed files with 176 additions and 179 deletions
|
@ -62,9 +62,9 @@ static char *GetAppName(void)
|
|||
int linksize;
|
||||
|
||||
#if defined(__LINUX__)
|
||||
(void)SDL_snprintf(procfile, sizeof procfile, "/proc/%d/exe", getpid());
|
||||
(void)SDL_snprintf(procfile, sizeof(procfile), "/proc/%d/exe", getpid());
|
||||
#elif defined(__FREEBSD__)
|
||||
(void)SDL_snprintf(procfile, sizeof procfile, "/proc/%d/file", getpid());
|
||||
(void)SDL_snprintf(procfile, sizeof(procfile), "/proc/%d/file", getpid());
|
||||
#endif
|
||||
linksize = readlink(procfile, linkfile, sizeof(linkfile) - 1);
|
||||
if (linksize > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue