aboutsummaryrefslogtreecommitdiffstats
path: root/regex_internal.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-01-22 08:28:37 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-01-22 08:28:37 +0200
commit2949f4b38cc7ecc14dfca32cbb719e43e95aa940 (patch)
tree508bd5d743740995c6f8485f9eb0f34461126610 /regex_internal.h
parentdaefaecbf36490f1c60b4030a489a157404fb8b3 (diff)
downloadegawk-2949f4b38cc7ecc14dfca32cbb719e43e95aa940.tar.gz
egawk-2949f4b38cc7ecc14dfca32cbb719e43e95aa940.tar.bz2
egawk-2949f4b38cc7ecc14dfca32cbb719e43e95aa940.zip
Fix some Linux Mint compilation warnings and braino errors.
Diffstat (limited to 'regex_internal.h')
-rw-r--r--regex_internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/regex_internal.h b/regex_internal.h
index ff26be7b..28b4239e 100644
--- a/regex_internal.h
+++ b/regex_internal.h
@@ -471,7 +471,7 @@ test_malloc(size_t count, const char *file, size_t line)
{
if (count == 0) {
fprintf(stderr, "%s:%lu: allocation of zero bytes\n",
- file, line);
+ file, (unsigned long) line);
exit(1);
}
return malloc(count);
@@ -482,7 +482,7 @@ test_realloc(void *p, size_t count, const char *file, size_t line)
{
if (count == 0) {
fprintf(stderr, "%s:%lu: reallocation of zero bytes\n",
- file, line);
+ file, (unsigned long) line);
exit(1);
}
return realloc(p, count);