projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
On some systems (NetBSD 1.6 and Solaris 9, at least), GCC doesn't understand
[u/mdw/putty]
/
import.c
diff --git
a/import.c
b/import.c
index
25012d2
..
2e2c12f
100644
(file)
--- a/
import.c
+++ b/
import.c
@@
-766,6
+766,7
@@
int openssh_write(const Filename *filename, struct ssh2_userkey *key,
footer = "-----END DSA PRIVATE KEY-----\n";
} else {
assert(0); /* zoinks! */
footer = "-----END DSA PRIVATE KEY-----\n";
} else {
assert(0); /* zoinks! */
+ exit(1); /* XXX: GCC doesn't understand assert() on some systems. */
}
/*
}
/*
@@
-1497,6
+1498,7
@@
int sshcom_write(const Filename *filename, struct ssh2_userkey *key,
type = "dl-modp{sign{dsa-nist-sha1},dh{plain}}";
} else {
assert(0); /* zoinks! */
type = "dl-modp{sign{dsa-nist-sha1},dh{plain}}";
} else {
assert(0); /* zoinks! */
+ exit(1); /* XXX: GCC doesn't understand assert() on some systems. */
}
/*
}
/*