From 4623e5435a9e80c267c1b601a543e14f95b883da Mon Sep 17 00:00:00 2001 From: Chad Loder Date: Tue, 13 Dec 2005 00:34:00 +0000 Subject: Fix an assignment (=) where an equality test (==) was meant. Found by lint. OK millert, deraadt --- sbin/ancontrol/ancontrol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/ancontrol') diff --git a/sbin/ancontrol/ancontrol.c b/sbin/ancontrol/ancontrol.c index 70c744c309f..b2089906459 100644 --- a/sbin/ancontrol/ancontrol.c +++ b/sbin/ancontrol/ancontrol.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ancontrol.c,v 1.28 2004/10/24 11:50:47 deraadt Exp $ */ +/* $OpenBSD: ancontrol.c,v 1.29 2005/12/13 00:33:59 cloder Exp $ */ /* * Copyright (c) 2001 Eric Jackson * @@ -1120,7 +1120,7 @@ an_str2key(char *s, struct an_ltv_key *k) char *p; /* Is this a hex string? */ - if ((s[0] = '0' && (s[1] == 'x' || s[1] == 'X'))) { + if ((s[0] == '0' && (s[1] == 'x' || s[1] == 'X'))) { /* Yes, convert to int */ n = 0; p = (char *)&k->key[0]; -- cgit v1.2.3