Permalink
Browse files

minor changes

  • Loading branch information...
1 parent 9d8a70d commit e3a1730af178dd5981fd44d81b14c6e3f7bdceba Robert A committed Jun 7, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 duoit.c
View
@@ -104,7 +104,6 @@ int initialize_server() {
* initialize head of user-list
*/
int ini_user_list(int newfd, usr **user) {
- int sock = get_port(newfd);
*user = calloc(1, sizeof(struct usr));
(*user)->csocket = newfd;
(*user)->dsocket = 0;
@@ -157,7 +156,7 @@ int find_user(int socket, usr *head, usr **result) {
*/
int find_pre_user(int socket, usr *head, usr **result) {
usr *pre;
-
+
if (head->csocket == socket) {
//only one user in user-list
return 1;

0 comments on commit e3a1730

Please sign in to comment.