<malloc.h> is no standard header, use <stdlib.h> instead.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27352 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+4
-4
@@ -14,10 +14,10 @@
|
|||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <malloc.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
|
||||||
/** Used to present the characters in the raw data view */
|
/** Used to present the characters in the raw data view */
|
||||||
@@ -66,7 +66,7 @@ dumpRawData(const char *buffer, size_t size)
|
|||||||
}
|
}
|
||||||
printf("'\n");
|
printf("'\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static status_t
|
static status_t
|
||||||
@@ -219,7 +219,7 @@ main(int argc, char *argv[])
|
|||||||
} else {
|
} else {
|
||||||
// Issue usage message
|
// Issue usage message
|
||||||
fprintf(stderr, "usage: %s [--raw|-r] attr_name file1 [file2...]\n", program);
|
fprintf(stderr, "usage: %s [--raw|-r] attr_name file1 [file2...]\n", program);
|
||||||
// Be's original version -only- returned 1 if the
|
// Be's original version -only- returned 1 if the
|
||||||
// amount of parameters was wrong, not if the file
|
// amount of parameters was wrong, not if the file
|
||||||
// or attribute couldn't be found (!)
|
// or attribute couldn't be found (!)
|
||||||
// In all other cases it returned 0
|
// In all other cases it returned 0
|
||||||
|
|||||||
Reference in New Issue
Block a user