From: Benjamin S. <cr...@ap...> - 2002-04-07 12:37:29
|
Update of /var/lib/cvs/bccs/src In directory apollo:/tmp/cvs-serv21107/src Modified Files: bccs_clients.c bccs_strings.c Log Message: correction in the network protocol Index: bccs_clients.c =================================================================== RCS file: /var/lib/cvs/bccs/src/bccs_clients.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- bccs_clients.c 6 Apr 2002 13:38:11 -0000 1.8 +++ bccs_clients.c 7 Apr 2002 12:36:58 -0000 1.9 @@ -1,4 +1,5 @@ /* bccs - bccs_client.c + * * Client-Handling * Copyright (C) 2002 Benjamin Schieder * This program is free software; you can redistribute it and/or modify @@ -378,9 +379,10 @@ // }}} // client_destroy {{{ -// deinitializes everthing in this module +// deinitializes everything in this module void client_destroy(){ free (user); + free (channel); pt_mutex_destroy(&mto_send_mutex, "destroying to_send_mutex"); pt_mutex_destroy(&mchannel, "destroying channel_mutex"); pt_mutex_destroy(&muser, "destroying user_mutex"); Index: bccs_strings.c =================================================================== RCS file: /var/lib/cvs/bccs/src/bccs_strings.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- bccs_strings.c 4 Apr 2002 11:31:58 -0000 1.4 +++ bccs_strings.c 7 Apr 2002 12:36:58 -0000 1.5 @@ -76,7 +76,7 @@ strcpy(myuser->username, username); client_update(*myuser, myuser->sockfd); memset(string_in, 0x0, 1); - send_to_user(*myuser, "<ok type=\"login\">"); + send_to_user(*myuser, "<ok type=\"login\" />"); } free(username); free(password); @@ -103,7 +103,7 @@ #ifdef _DEBUG fprintf(stderr, "User %s joins channel %s\n", myuser->username, join); #endif - send_to_user(*myuser, "<ok type=\"join\">"); + send_to_user(*myuser, "<ok type=\"join\" />"); send_userlist(*myuser); sendstring = malloc(200); sprintf(sendstring, "<enter userid=\"%d\" username=\"%s\"/>", myuser->userid, myuser->username); |