projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops, Ben is quite right about the rather appalling design of
[u/mdw/putty]
/
winmisc.c
diff --git
a/winmisc.c
b/winmisc.c
index
9260918
..
2266341
100644
(file)
--- a/
winmisc.c
+++ b/
winmisc.c
@@
-13,7
+13,7
@@
void platform_get_x11_auth(char *display, int *proto,
/* We don't support this at all under Windows. */
}
/* We don't support this at all under Windows. */
}
-Filename filename_from_str(char *str)
+Filename filename_from_str(c
onst c
har *str)
{
Filename ret;
strncpy(ret.path, str, sizeof(ret.path));
{
Filename ret;
strncpy(ret.path, str, sizeof(ret.path));
@@
-21,9
+21,9
@@
Filename filename_from_str(char *str)
return ret;
}
return ret;
}
-c
har *filename_to_str(Filename
fn)
+c
onst char *filename_to_str(const Filename *
fn)
{
{
- return fn
.
path;
+ return fn
->
path;
}
int filename_equal(Filename f1, Filename f2)
}
int filename_equal(Filename f1, Filename f2)