diff --git a/src/restore.c b/src/restore.c index 086f21d99..bf2376c4e 100644 --- a/src/restore.c +++ b/src/restore.c @@ -1385,7 +1385,9 @@ void restore_msghistory(NHFILE *nhfp) { int msgsize = 0; +#ifndef SFCTOOL int msgcount = 0; +#endif char msg[BUFSZ]; while (1) { @@ -1398,8 +1400,8 @@ restore_msghistory(NHFILE *nhfp) msg[msgsize] = '\0'; #ifndef SFCTOOL putmsghistory(msg, TRUE); -#endif /* !SFCTOOL */ ++msgcount; +#endif /* !SFCTOOL */ } #ifndef SFCTOOL if (msgcount)