blob: 5ae510b06d57b598faa24c03fca03705712dd124 (
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
|
$NetBSD: patch-ab,v 1.2 2005/03/07 15:30:44 adam Exp $
--- discover.c.orig 2004-10-10 03:49:03.000000000 +0000
+++ discover.c
@@ -90,9 +90,10 @@ static void NameCallback(mDNS *const m,
{
domainlabel name;
domainname type, domain;
+ SDiscover_HostList *new;
ts_mutex_lock(pDiscover->mtObjectLock);
- SDiscover_HostList *new = malloc(sizeof(SDiscover_HostList));
+ new = malloc(sizeof(SDiscover_HostList));
memset(new, 0, sizeof(SDiscover_HostList));
if (!AddRecord) new->lost = 1;
@@ -217,11 +218,11 @@ static void CheckoutHostsWorker(void *pv
SDiscover *pDiscover = (SDiscover *)pvDiscoverThis;
SDiscover_HostList *cur, *next;
int cmd;
+ int finalized = 0;
ts_mutex_lock(pDiscover->mtWorkerLock);
ts_mutex_lock(pDiscover->mtObjectLock);
- int finalized = 0;
cur = pDiscover->prenamed;
pDiscover->prenamed = NULL;
|