patch-Wnn_uum_history_c 653 B

1234567891011121314151617181920212223242526272829
  1. $OpenBSD: patch-Wnn_uum_history_c,v 1.1 2015/07/25 16:47:12 espie Exp $
  2. --- Wnn/uum/history.c.orig Tue Nov 26 07:48:10 1991
  3. +++ Wnn/uum/history.c Fri Jul 24 17:55:20 2015
  4. @@ -49,6 +49,7 @@
  5. /* Version 4.0
  6. */
  7. #include <stdio.h>
  8. +#include <stdlib.h>
  9. #include "commonhd.h"
  10. #include "sdefine.h"
  11. #include "sheader.h"
  12. @@ -73,7 +74,6 @@ static void set_up_history();
  13. int
  14. init_history()
  15. {
  16. - char *malloc();
  17. int size1;
  18. char *area_pter;
  19. @@ -108,8 +108,6 @@ make_history(wstr, n)
  20. register w_char *wstr;
  21. register int n;
  22. {
  23. - extern char *malloc();
  24. -
  25. if (!history_cunt)
  26. return(0);
  27. if (n <= 0 || n > maxchg || *wstr == NULL)