Skip to content

Commit

Permalink
Minor FreeBSD code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 25, 2013
1 parent 5f45f42 commit c9c6852
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/filesystem/unix/SDL_sysfilesystem.c
Expand Up @@ -82,11 +82,7 @@ SDL_GetBasePath(void)
#if defined(__FREEBSD__)
char fullpath[PATH_MAX];
size_t buflen = sizeof (fullpath);
int mib[4];
mib[0] = CTL_KERN;
mib[1] = KERN_PROC;
mib[2] = KERN_PROC_PATHNAME;
mib[3] = -1;
const int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 };
if (sysctl(mib, 4, fullpath, &buflen, NULL, 0) != -1) {
retval = SDL_strdup(fullpath);
if (!retval) {
Expand Down

0 comments on commit c9c6852

Please sign in to comment.