openbsd-ports/net/icb/patches/patch-ao
brad d3db425848 - convert patches to unified diffs
- merge contents of patch-ad and patch-an into patch-ad
2000-01-16 09:26:46 +00:00

27 lines
491 B
Plaintext

--- icb/tcl.c.orig Fri Feb 24 16:20:30 1995
+++ icb/tcl.c Sun Jan 16 01:59:09 2000
@@ -145,7 +145,7 @@
if ((homedir = getenv("HOME")) == NULL) {
printf("icb: warning - $HOME not set.\r\n");
- return(0);
+ return(NULL);
}
for (p=names; p && *p; ++p)
@@ -153,12 +153,9 @@
sprintf(rcpath, "%s/%s", homedir, *p);
rcfile = rcpath;
if (access(rcfile, R_OK)==0)
- break;
+ return rcfile;
}
- if (p)
- return rcfile;
-
- return(0);
+ return(NULL);
}
tclrestrict()