mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-11 00:56:52 +00:00
Fixed r_magic_version prototype warning
This commit is contained in:
parent
0f1909830c
commit
1db08bb498
@ -38,7 +38,6 @@
|
||||
#define S_ISFIFO(m) (((m) & S_IFIFO) == S_IFIFO)
|
||||
#define MAXPATHLEN 255
|
||||
#endif
|
||||
R_LIB_VERSION (r_magic);
|
||||
|
||||
#if USE_LIB_MAGIC
|
||||
#include <magic.h>
|
||||
@ -46,6 +45,8 @@ R_LIB_VERSION (r_magic);
|
||||
#undef R_API
|
||||
#define R_API
|
||||
|
||||
R_LIB_VERSION (r_magic);
|
||||
|
||||
R_API RMagic* r_magic_new(int flags) {
|
||||
return magic_open (flags);
|
||||
}
|
||||
@ -263,6 +264,8 @@ done:
|
||||
|
||||
/* API */
|
||||
|
||||
R_LIB_VERSION (r_magic);
|
||||
|
||||
// TODO: reinitialize all the time
|
||||
R_API RMagic* r_magic_new(int flags) {
|
||||
RMagic *ms = R_NEW0 (RMagic);
|
||||
|
Loading…
x
Reference in New Issue
Block a user