X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Famd.c;h=71c6cacad4126174331d067dc9095af9c1b53975;hb=38636e4790fa719e5e6e9cad67afa7731f9252a2;hp=b303252d9e6670543963032fc8f5fbd1b01f3c06;hpb=b150b432264680d90fc76049ba0b4cb1adf60164;p=psensor.git diff --git a/src/lib/amd.c b/src/lib/amd.c index b303252..71c6cac 100644 --- a/src/lib/amd.c +++ b/src/lib/amd.c @@ -60,8 +60,8 @@ static int *active_amd_adapters; /* Memory allocation function */ static void __stdcall *adl_main_memory_alloc(int isize) { - void *lpbuffer = malloc(isize); - return lpbuffer; + void *lpbuffer = malloc(isize); + return lpbuffer; } /* Optional Memory de-allocation function */ @@ -75,7 +75,7 @@ static void __stdcall adl_main_memory_free(void **lpbuffer) static void *getprocaddress(void *plibrary, const char * name) { - return dlsym(plibrary, name); + return dlsym(plibrary, name); } /*