From c9c6852f84530522e6181761dd021093d180255d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 24 Aug 2013 21:15:10 -0400 Subject: [PATCH] Minor FreeBSD code cleanup. --- src/filesystem/unix/SDL_sysfilesystem.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/filesystem/unix/SDL_sysfilesystem.c b/src/filesystem/unix/SDL_sysfilesystem.c index d3a3a067621a7..b3e5f5f264ec4 100644 --- a/src/filesystem/unix/SDL_sysfilesystem.c +++ b/src/filesystem/unix/SDL_sysfilesystem.c @@ -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) {