summaryrefslogtreecommitdiff
path: root/source/fitz/memento.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-11-03 20:17:43 +0000
committerRobin Watts <robin.watts@artifex.com>2016-11-04 13:15:31 +0000
commit21368c7c8fb06b2603f35476c3302d8f721e8558 (patch)
treef036f6474b45a6d8cb56d82ca1daf3fb07736c26 /source/fitz/memento.c
parent749f6482c368023a4c4f9dd222c72dba3b94480d (diff)
downloadmupdf-21368c7c8fb06b2603f35476c3302d8f721e8558.tar.xz
Avoid warning in memento builds.
Diffstat (limited to 'source/fitz/memento.c')
-rw-r--r--source/fitz/memento.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/fitz/memento.c b/source/fitz/memento.c
index 3108e7fe..3e405850 100644
--- a/source/fitz/memento.c
+++ b/source/fitz/memento.c
@@ -42,6 +42,7 @@ int atexit(void (*)(void));
#include "mupdf/memento.h"
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#endif
#ifndef _MSC_VER
#include <stdint.h>
@@ -1544,7 +1545,7 @@ void Memento_info(void *addr)
/* stashed_map[j] = i means that file descriptor i-1 was duplicated to j */
int stashed_map[OPEN_MAX];
-static void Memento_signal(void)
+static void Memento_signal(int signal)
{
fprintf(stderr, "SEGV after Memory squeezing @ %d\n", memento.squeezeAt);
@@ -1633,7 +1634,7 @@ static int squeeze(void)
#else
#include <signal.h>
-static void Memento_signal(void)
+static void Memento_signal(int signum)
{
memento.segv = 1;
/* If we just return from this function the SEGV will be unhandled, and