Delete the use and definition of "eprint" (#15716)

This commit is contained in:
radare 2019-12-28 23:31:38 +01:00 committed by GitHub
parent 42350f4942
commit a911e4cb1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -353,7 +353,6 @@ static inline void *r_new_copy(int size, void *data) {
#ifndef HAVE_EPRINTF
#define eprintf(...) fprintf(stderr,__VA_ARGS__)
#define eprint(x) fprintf(stderr,"%s\n",x)
#define HAVE_EPRINTF 1
#endif

View File

@ -117,7 +117,7 @@ R_API bool r_base85_decode(FILE *fp, int delims, int ignore_garbage) {
}
ungetc (c, fp);
} else if (c == EOF) {
eprint ("ascii85: missing <~");
eprintf ("ascii85: missing <~");
return false;
}
}
@ -134,7 +134,7 @@ R_API bool r_base85_decode(FILE *fp, int delims, int ignore_garbage) {
if (c == '~' && delims) {
c = getc_nospace (fp);
if (c != '>') {
eprint ("ascii85: ~ without >\n");
eprintf ("ascii85: ~ without >\n");
return false;
}
c = EOF;
@ -142,7 +142,7 @@ R_API bool r_base85_decode(FILE *fp, int delims, int ignore_garbage) {
}
if (c == EOF) {
if (delims && !end) {
eprint ("ascii85: missing ~>");
eprintf ("ascii85: missing ~>");
return false;
}
if (count > 0) {