v3l0c1r4pt0r / xSDM

Open-source unpacker for Microsoft Imagine/Dreamspark/MSDNAA SDC format
GNU General Public License v2.0
77 stars 8 forks source link

Fix perror argument File* to char* #21

Open StidOfficial opened 7 years ago

StidOfficial commented 7 years ago

For fix warning to perror required char* argument

Error :

main.c:33:24: attention : passing argument 1 of « perror » from incompatible pointer type [-Wincompatible-pointer-types]
                 perror(hdrout);
                        ^~~~~~
In file included from xsdc.h:5:0,
                 from main.h:3,
                 from main.c:1:
/usr/include/stdio.h:848:13: note : expected « const char * » but argument is of type « FILE * {alias struct _IO_FILE *} »
 extern void perror (const char *__s);
             ^~~~~~