blob: b5c201f1435b098352510929f3d02ad29bb39ee7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
$NetBSD: patch-ae,v 1.1 2005/04/29 22:17:13 rillig Exp $
Needed for ISO C90 compliance.
--- hydra-teamspeak.c.orig Thu Jan 6 16:39:55 2005
+++ hydra-teamspeak.c Tue Apr 26 12:16:41 2005
@@ -14,11 +14,6 @@ start_teamspeak(int s, unsigned long int
char *login, *pass;
char buf[100];
- if (strlen(login = hydra_get_next_login()) == 0)
- login = empty;
- if (strlen(pass = hydra_get_next_password()) == 0)
- pass = empty;
-
struct team_speak {
char header[16];
unsigned long crc;
@@ -35,6 +30,11 @@ start_teamspeak(int s, unsigned long int
char login[29];
};
struct team_speak teamspeak;
+
+ if (strlen(login = hydra_get_next_login()) == 0)
+ login = empty;
+ if (strlen(pass = hydra_get_next_password()) == 0)
+ pass = empty;
memset(&teamspeak, 0, sizeof(struct team_speak));
|