freebsd-ports/graphics/ayam/files/patch-contrib_sm.c
Martin Wilke 229ea01b19 - Update to 1.13 (fix pointyhat build)
- Pass maintainership to submitter

PR:		118786
Submitted by:	Pietro Cerutti <gahr@gahr.ch>
2007-12-18 00:19:10 +00:00

24 lines
786 B
C

--- contrib/sm.c.orig 2007-09-21 13:30:37.000000000 +0200
+++ contrib/sm.c 2007-12-17 19:01:46.000000000 +0100
@@ -473,7 +473,7 @@
static int countsm = 0;
char arrname[] = "ayprefs";
char ffvarname[] = "SMFileFormat", ftvarname[] = "SMFileType";
- char *smfileformat = NULL, *smfiletype = NULL;
+ char *smfileformat, *smfiletype;
if(!o)
return;
@@ -498,10 +498,10 @@
return;
}
- smfiletype = Tcl_GetVar2(ay_interp, arrname, ftvarname,
+ smfiletype = (char *)Tcl_GetVar2(ay_interp, arrname, ftvarname,
TCL_LEAVE_ERR_MSG | TCL_GLOBAL_ONLY);
- smfileformat = Tcl_GetVar2(ay_interp, arrname, ffvarname,
+ smfileformat = (char *)Tcl_GetVar2(ay_interp, arrname, ffvarname,
TCL_LEAVE_ERR_MSG | TCL_GLOBAL_ONLY);
newtrafo->next = trafo;