/pidgin/main: 80a5d9ba1c1b: Remove unused parameter.
Mark Doliner
mark at kingant.net
Sun Dec 30 02:30:49 EST 2012
Changeset: 80a5d9ba1c1bbebd20a59805c920792a4a6bf23d
Author: Mark Doliner <mark at kingant.net>
Date: 2012-12-29 21:46 -0800
Branch: default
URL: http://hg.pidgin.im/pidgin/main/rev/80a5d9ba1c1b
Description:
Remove unused parameter.
diffstat:
libpurple/ntlm.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (32 lines):
diff --git a/libpurple/ntlm.c b/libpurple/ntlm.c
--- a/libpurple/ntlm.c
+++ b/libpurple/ntlm.c
@@ -221,15 +221,12 @@ calc_resp(guint8 *keys, const guint8 *pl
}
static void
-gensesskey(char *buffer, const char *oldkey)
+gensesskey(char *buffer)
{
int i = 0;
- if(oldkey == NULL) {
- for(i=0; i<16; i++) {
- buffer[i] = (char)(rand() & 0xff);
- }
- } else {
- memcpy(buffer, oldkey, 16);
+
+ for (i = 0; i < 16; i++) {
+ buffer[i] = (char)(rand() & 0xff);
}
}
@@ -366,7 +363,7 @@ purple_ntlm_gen_type3(const gchar *usern
/* LCS Stuff */
if (flags) {
tmsg->flags = GUINT32_TO_LE(0x409082d4);
- gensesskey(sesskey, NULL);
+ gensesskey(sesskey);
memcpy(tmp, sesskey, 0x10);
}
More information about the Commits
mailing list