summaryrefslogtreecommitdiff
path: root/net/dctc/patches/patch-af
blob: 29d94abc85d8ab4f6772037731f3673afa705603 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-af,v 1.4 2002/11/03 21:31:24 wiz Exp $

--- src/userinfo.c.orig	Wed Oct 30 16:49:57 2002
+++ src/userinfo.c
@@ -99,10 +99,10 @@ void uinfo_update_user_info(char *nickna
 
 	if(idx!=-1)
 	{
-		printf("doing: %d\n",idx);
 		/* 1) the entry already exists, just update it */
 		/* 2) the entry does not exist but there is free space to add it */
 		LMP_UINFO *udp=&(((LMP_UINFO*)(local_dctc_user_info_lmp->mapped_addr))[idx]);
+		printf("doing: %d\n",idx);
 		udp->entry_is_busy=1;											/* we set it to 1 because it can be an add or an update */
 		strncpy_max(udp->nickname,nickname,UINFO_NICK_SIZE);
 		sscanf(usize,"%lld",&(udp->share_size));