Minor FreeBSD code cleanup.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 24 Aug 2013 21:15:10 -0400
changeset 7697678f71df2c6b
parent 7696 e605ca133ac6
child 7698 a60b3c292f0f
Minor FreeBSD code cleanup.
src/filesystem/unix/SDL_sysfilesystem.c
     1.1 --- a/src/filesystem/unix/SDL_sysfilesystem.c	Sat Aug 24 09:43:14 2013 -0400
     1.2 +++ b/src/filesystem/unix/SDL_sysfilesystem.c	Sat Aug 24 21:15:10 2013 -0400
     1.3 @@ -82,11 +82,7 @@
     1.4  #if defined(__FREEBSD__)
     1.5      char fullpath[PATH_MAX];
     1.6      size_t buflen = sizeof (fullpath);
     1.7 -    int mib[4];
     1.8 -    mib[0] = CTL_KERN;
     1.9 -    mib[1] = KERN_PROC;
    1.10 -    mib[2] = KERN_PROC_PATHNAME;
    1.11 -    mib[3] = -1;
    1.12 +    const int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 };
    1.13      if (sysctl(mib, 4, fullpath, &buflen, NULL, 0) != -1) {
    1.14          retval = SDL_strdup(fullpath);
    1.15          if (!retval) {