freebsd-ports/x11-fm/ezfm/files/patch-folder.c
Alexey Dokuchaev 960a87e37c - Unbreak parallel (-jX) builds by calling sub-makes correctly
- Avoid hardcoding version in DISTNAME, use modern LIB_DEPENDS syntax
- Do not install COPYING as portdocs, use LICENSE framework instead
- Fix the build against Clang (return should match function prototype)
- Cleanup do-install target recipe while I am here

Approved by:	miwi, bapt (portmgr, implicit)
2013-08-24 14:31:18 +00:00

22 lines
922 B
C

--- folder.c.orig 2007-12-07 00:06:06.000000000 +0100
+++ folder.c 2007-12-07 00:06:26.000000000 +0100
@@ -883,8 +883,8 @@ Folder *createNewFolder(pathname, toplev
EZ_Widget *pframe, *tmp;
int type = (ftype == 0 ? defaultFolderType: ftype);
- if(which != 0 && which != 1) return;
- if(toplevel->folder[which] != NULL) return;
+ if(which != 0 && which != 1) return NULL;
+ if(toplevel->folder[which] != NULL) return NULL;
folder= (Folder *) EZ_Malloc(sizeof(Folder));
finfo = (FileInfo *) EZ_Malloc(sizeof(FileInfo));
@@ -2118,7 +2118,7 @@ static void renameEntryCb(entry, data) E
else
{
char *err = (errno >= 0 && errno <sys_nerr)?
- sys_errlist[errno] : "Unknown error";
+ (char *)sys_errlist[errno] : "Unknown error";
ezfmWarning("Rename File Failed", err);
}
}