openbsd-ports/japanese/Wnn/patches/patch-Wnn_uum_history_c
2022-03-11 19:24:42 +00:00

28 lines
581 B
Plaintext

--- Wnn/uum/history.c.orig Tue Nov 26 07:48:10 1991
+++ Wnn/uum/history.c Fri Jul 24 17:55:20 2015
@@ -49,6 +49,7 @@
/* Version 4.0
*/
#include <stdio.h>
+#include <stdlib.h>
#include "commonhd.h"
#include "sdefine.h"
#include "sheader.h"
@@ -73,7 +74,6 @@ static void set_up_history();
int
init_history()
{
- char *malloc();
int size1;
char *area_pter;
@@ -108,8 +108,6 @@ make_history(wstr, n)
register w_char *wstr;
register int n;
{
- extern char *malloc();
-
if (!history_cunt)
return(0);
if (n <= 0 || n > maxchg || *wstr == NULL)