opnsense-ports/textproc/2bsd-diff/files/patch-diff.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

22 lines
354 B
C

--- diff.c.orig Wed Nov 13 05:31:26 1991
+++ diff.c Wed Mar 19 01:31:23 2003
@@ -176,9 +176,10 @@
return (a > b ? a : b);
}
+sig_t
done()
{
- if (tempfile)
+ if (tempfile[0])
unlink(tempfile);
exit(status);
}
@@ -198,7 +199,6 @@
char *p;
{
register char *q;
- char *realloc();
if ((q = realloc(p, (unsigned)n)) == NULL)
noroom();