projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Miscellaneous fixes to finish up `remove-statics'. rlogin.c had a
[u/mdw/putty]
/
sshbn.c
diff --git
a/sshbn.c
b/sshbn.c
index
8246e25
..
22ed5dc
100644
(file)
--- a/
sshbn.c
+++ b/
sshbn.c
@@
-406,7
+406,7
@@
Bignum modmul(Bignum p, Bignum q, Bignum mod)
* We optionally write out a quotient if `quotient' is non-NULL.
* We can avoid writing out the result if `result' is NULL.
*/
* We optionally write out a quotient if `quotient' is non-NULL.
* We can avoid writing out the result if `result' is NULL.
*/
-void bigdivmod(Bignum p, Bignum mod, Bignum result, Bignum quotient)
+
static
void bigdivmod(Bignum p, Bignum mod, Bignum result, Bignum quotient)
{
unsigned short *n, *m;
int mshift;
{
unsigned short *n, *m;
int mshift;
@@
-797,8
+797,10
@@
unsigned short bignum_mod_short(Bignum number, unsigned short modulus)
return (unsigned short) r;
}
return (unsigned short) r;
}
+#if 0
void diagbn(char *prefix, Bignum md)
{
void diagbn(char *prefix, Bignum md)
{
+#ifdef DEBUG
int i, nibbles, morenibbles;
static const char hex[] = "0123456789ABCDEF";
int i, nibbles, morenibbles;
static const char hex[] = "0123456789ABCDEF";
@@
-816,7
+818,9
@@
void diagbn(char *prefix, Bignum md)
if (prefix)
debug(("\n"));
if (prefix)
debug(("\n"));
+#endif
}
}
+#endif
/*
* Simple division.
/*
* Simple division.