projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ed50931
)
Fix maskcmp() and maskcpy().
author
Guus Sliepen
<guus@tinc-vpn.org>
Wed, 20 Feb 2002 17:15:33 +0000
(17:15 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Wed, 20 Feb 2002 17:15:33 +0000
(17:15 +0000)
src/netutl.c
patch
|
blob
|
history
diff --git
a/src/netutl.c
b/src/netutl.c
index
2ad30fc
..
ea4839f
100644
(file)
--- a/
src/netutl.c
+++ b/
src/netutl.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: netutl.c,v 1.12.4.2
4 2002/02/18 16:25:16
guus Exp $
+ $Id: netutl.c,v 1.12.4.2
5 2002/02/20 17:15:33
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-165,7
+165,7
@@
int maskcmp(char *a, char *b, int masklen, int len)
{
int i, m, result;
cp
{
int i, m, result;
cp
- for(m = masklen, i = 0; m > 8; m -= 8, i++)
+ for(m = masklen, i = 0; m >
=
8; m -= 8, i++)
if((result = a[i] - b[i]))
return result;
if((result = a[i] - b[i]))
return result;
@@
-193,7
+193,7
@@
void maskcpy(char *a, char *b, int masklen, int len)
{
int i, m;
cp
{
int i, m;
cp
- for(m = masklen, i = 0; m > 8; m -= 8, i++)
+ for(m = masklen, i = 0; m >
=
8; m -= 8, i++)
a[i] = b[i];
if(m)
a[i] = b[i];
if(m)