diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2005-12-13 00:34:00 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2005-12-13 00:34:00 +0000 |
commit | 4623e5435a9e80c267c1b601a543e14f95b883da (patch) | |
tree | 5c9ce76443b2836a86ca3f2d6d0621c620699ca5 /sbin/ancontrol | |
parent | b466dc6c744e98a10e772ce66e9471a7fd48176d (diff) |
Fix an assignment (=) where an equality test (==) was meant. Found by
lint. OK millert, deraadt
Diffstat (limited to 'sbin/ancontrol')
-rw-r--r-- | sbin/ancontrol/ancontrol.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <ericj@monkey.org> * @@ -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]; |