summaryrefslogtreecommitdiff
path: root/inet
diff options
context:
space:
mode:
authorThomas Bushnell, BSG <thomas@gnu.org>1995-08-03 18:40:32 +0000
committerThomas Bushnell, BSG <thomas@gnu.org>1995-08-03 18:40:32 +0000
commit2765963bdccefaec334a204171429e600434aa0d (patch)
tree1bbe857335fc95fea3e6588a7a8cea2829bbbbde /inet
parent6c685ebb794b8d079a47a985260291db59069116 (diff)
(IN_CLASSD, IN_EXPERIMENTAL, IN_BADCLASS): Use equality, not assignment, to test bit fields.
Diffstat (limited to 'inet')
-rw-r--r--inet/netinet/in.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/inet/netinet/in.h b/inet/netinet/in.h
index e8bc3b075e..e281e45547 100644
--- a/inet/netinet/in.h
+++ b/inet/netinet/in.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or modify
@@ -115,11 +115,11 @@ struct in_addr
#define IN_CLASSC_NSHIFT 8
#define IN_CLASSC_HOST (0xffffffff & ~IN_CLASSC_NET)
-#define IN_CLASSD(a) ((((long int) (a)) & 0xf0000000) = 0xe0000000)
+#define IN_CLASSD(a) ((((long int) (a)) & 0xf0000000) == 0xe0000000)
#define IN_MULTICAST(a) IN_CLASSD(a)
-#define IN_EXPERIMENTAL(a) ((((long int) (a)) & 0xe0000000) = 0xe0000000)
-#define IN_BADCLASS(a) ((((long int) (a)) & 0xf0000000) = 0xf0000000)
+#define IN_EXPERIMENTAL(a) ((((long int) (a)) & 0xe0000000) == 0xe0000000)
+#define IN_BADCLASS(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000)
/* Address to accept any incoming messages. */
#define INADDR_ANY ((unsigned long int) 0x00000000)