소스 검색

Readability: remove redundant cast

Sylvain Becker 5 년 전
부모
커밋
dab55a8d23
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/loadso/dlopen/SDL_sysloadso.c

+ 1 - 1
src/loadso/dlopen/SDL_sysloadso.c

@@ -48,7 +48,7 @@ SDL_LoadObject(const char *sofile)
 #endif
 
     handle = dlopen(sofile, RTLD_NOW|RTLD_LOCAL);
-    loaderror = (char *) dlerror();
+    loaderror = dlerror();
     if (handle == NULL) {
         SDL_SetError("Failed loading %s: %s", sofile, loaderror);
     }