openbsd-ports/archivers/ha/patches/patch-aa
brad 88b6e1ee18 - cleanup Makefile
- convert patches to unified diffs
- make this port respect CFLAGS
1999-12-15 22:32:10 +00:00

21 lines
689 B
Plaintext

--- nix/machine.c.orig Thu Jan 12 01:53:00 1995
+++ nix/machine.c Wed Dec 15 17:17:57 1999
@@ -336,7 +336,7 @@
static char ts[22];
struct tm *tim;
- tim=localtime((long *)&t);
+ tim=localtime((time_t *)&t);
sprintf(ts,"%04d-%02d-%02d %02d:%02d",tim->tm_year+1900,tim->tm_mon+1,
tim->tm_mday,tim->tm_hour,tim->tm_min);
return ts;
@@ -417,7 +417,7 @@
if (plainname!=NULL) free(plainname),plainname=NULL;
if ((plainname=malloc(strlen(mdfullpath)+1))==NULL)
error(1,ERR_MEM,"md_stripname()");
- for (i=strlen(mdfullpath)-1;i>0;i--) {
+ for (i=strlen(mdfullpath)-1;i>=0;i--) {
if (mdfullpath[i]=='/') {
i++;
break;