projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move the Mac port over to using snew/snewn/sresize.
[u/mdw/putty]
/
mac
/
macstore.c
diff --git
a/mac/macstore.c
b/mac/macstore.c
index
30eb1cf
..
5425efa
100644
(file)
--- a/
mac/macstore.c
+++ b/
mac/macstore.c
@@
-1,4
+1,4
@@
-/* $Id: macstore.c,v 1.1
7 2003/03/27 22:46:28
ben Exp $ */
+/* $Id: macstore.c,v 1.1
8 2003/03/29 23:07:55
ben Exp $ */
/*
* macstore.c: Macintosh-specific impementation of the interface
/*
* macstore.c: Macintosh-specific impementation of the interface
@@
-149,7
+149,7
@@
void *open_settings_w_fsp(FSSpec *dstfile)
OSErr error;
Str255 tmpname;
OSErr error;
Str255 tmpname;
- ws = s
malloc(sizeof *w
s);
+ ws = s
new(struct write_setting
s);
ws->dstfile = *dstfile;
/* Create a temporary file to save to first. */
ws->dstfile = *dstfile;
/* Create a temporary file to save to first. */
@@
-278,7
+278,7
@@
void *open_settings_r_fsp(FSSpec *sessfile)
fd = FSpOpenResFile(sessfile, fsRdPerm);
if (fd == 0) {error = ResError(); goto out;}
fd = FSpOpenResFile(sessfile, fsRdPerm);
if (fd == 0) {error = ResError(); goto out;}
- handle = s
malloc(sizeof *handle
);
+ handle = s
new(int
);
*handle = fd;
return handle;
*handle = fd;
return handle;