From 3e7481519e35c670cbf75320e6a1bd4485e42400 Mon Sep 17 00:00:00 2001 From: Grissess Date: Mon, 15 Jun 2015 01:37:37 -0400 Subject: Major functionality enhancements and bugfixes --- client.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index 830ef19..a7a5472 100644 --- a/client.c +++ b/client.c @@ -90,8 +90,8 @@ int main(int argc, char **argv) { break; case CMD_CAPS: - cmd.data[0] = 1; - cmd.data[1] = ident; + cmd.data[0] = htonl(1); + cmd.data[1] = htonl(ident); for(i = 0; i < 6 * sizeof(int); i++) { if(argc > 1 && i < len_uid) { cmd.string[i+8] = argv[1][i]; @@ -99,9 +99,6 @@ int main(int argc, char **argv) { cmd.string[i+8] = '\0'; } } - for(i = 0; i < 8; i++) { - cmd.data[i] = htonl(cmd.data[i]); - } sendto(sock, &cmd, sizeof(cmd), 0, (struct sockaddr *) &remote, rlen); break; -- cgit v1.2.3-70-g09d2