summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-04-07 00:02:18 +0000
committerStef Walter <stef@memberwebs.com>2006-04-07 00:02:18 +0000
commit07ae133abf41af9d24a3a49196ac8c919b849629 (patch)
treed46eaa835dd2de3950e52d7f3714bbef49e87bd2
parent5b17acfdb5505a4fa8e322f8fa954283418154db (diff)
Fix debug mode build.
-rw-r--r--tools/rrdbot-get.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/rrdbot-get.c b/tools/rrdbot-get.c
index a1c904a..e140eb1 100644
--- a/tools/rrdbot-get.c
+++ b/tools/rrdbot-get.c
@@ -134,7 +134,7 @@ setup_req(char* uri)
errx(2, "%s: %s", msg, copy);
free(copy);
- ASSERT(host && path);
+ ASSERT(ctx.hostname && path);
/* Currently we only support SNMP pollers */
if(strcmp(scheme, "snmp") != 0)
@@ -194,7 +194,7 @@ print_resp(struct snmp_pdu* pdu, uint64_t when)
char *t;
int i;
- ASSERT(req->id == pdu->request_id);
+ ASSERT(ctx.pdu.request_id == pdu->request_id);
for(i = 0; i < pdu->nbindings; i++)
{
@@ -265,7 +265,7 @@ receive_resp(int fd, int type, void* arg)
int len, ret, subid;
int32_t ip;
- ASSERT(snmp_socket == fd);
+ ASSERT(ctx.socket == fd);
/* Read in the packet */