patch-onewmisc_c 631 B

12345678910111213141516171819202122232425262728293031323334353637
  1. $OpenBSD: patch-onewmisc_c,v 1.2 2017/05/06 12:51:21 espie Exp $
  2. Index: onewmisc.c
  3. --- onewmisc.c.orig
  4. +++ onewmisc.c
  5. @@ -5,6 +5,7 @@
  6. char *getenv();
  7. #include <ctype.h>
  8. #include <stdio.h>
  9. +#include <string.h>
  10. #include "onew.h"
  11. char *Onew_env_substitute(istr,ostr)
  12. @@ -100,6 +101,7 @@ onew_messagefunc(func)
  13. }
  14. static FILE *LOG;
  15. +void
  16. Onew_dbglog(fmt,a,b,c,d,e,f,g)
  17. char *fmt;
  18. { char *logfile;
  19. @@ -147,6 +149,7 @@ static strQovf(len){
  20. }
  21. return 0;
  22. }
  23. +void
  24. strQenq(Q,c)
  25. Uchar *Q,c;
  26. { int len;
  27. @@ -157,6 +160,7 @@ strQenq(Q,c)
  28. Q[len] = c;
  29. Q[len+1] = 0;
  30. }
  31. +void
  32. strQins(Q,c)
  33. Uchar *Q,c;
  34. { Linebuff buff;