summaryrefslogtreecommitdiffstats
path: root/cpukit/pppd/pppd.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2006-08-31 01:10:02 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2006-08-31 01:10:02 +0000
commita009d94459a8c8e126dadc8ee335b5833556dac7 (patch)
treef582cdcd1a13e5a920f2adfd668d153228ebf2cf /cpukit/pppd/pppd.h
parent2006-08-30 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-a009d94459a8c8e126dadc8ee335b5833556dac7.tar.bz2
2006-08-30 Joel Sherrill <joel@OARcorp.com>
* ftpd/ftpd.c, libcsupport/include/sys/ioccom.h, libcsupport/src/ioctl.c, libnetworking/kern/uipc_mbuf.c, libnetworking/libc/inet_addr.c, libnetworking/net/ethernet.h, libnetworking/net/if.c, libnetworking/net/if_ethersubr.c, libnetworking/net/if_ppp.c, libnetworking/net/if_pppvar.h, libnetworking/net/if_var.h, libnetworking/net/ppp_tty.c, libnetworking/netinet/in_cksum.c, libnetworking/nfs/bootp_subr.c, libnetworking/rtems/rtems_bsdnet_internal.h, libnetworking/sys/mbuf.h, pppd/md4.c, pppd/pppd.h: Remove warnings due to improper use of int which shows up on 16 bit targets. Added ioctl_command_t since IOCTL command argument does not reliably fit into 16 bits.
Diffstat (limited to '')
-rw-r--r--cpukit/pppd/pppd.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/cpukit/pppd/pppd.h b/cpukit/pppd/pppd.h
index 95fe61531d..95d40b82ba 100644
--- a/cpukit/pppd/pppd.h
+++ b/cpukit/pppd/pppd.h
@@ -74,33 +74,33 @@ typedef struct {
enum opt_type type;
void *addr;
char *description;
- int flags;
+ uint32_t flags;
void *addr2;
int upper_limit;
int lower_limit;
} option_t;
/* Values for flags */
-#define OPT_VALUE 0xff /* mask for presupplied value */
-#define OPT_HEX 0x100 /* int option is in hex */
-#define OPT_NOARG 0x200 /* option doesn't take argument */
-#define OPT_OR 0x400 /* OR in argument to value */
-#define OPT_INC 0x800 /* increment value */
-#define OPT_PRIV 0x1000 /* privileged option */
-#define OPT_STATIC 0x2000 /* string option goes into static array */
-#define OPT_LLIMIT 0x4000 /* check value against lower limit */
-#define OPT_ULIMIT 0x8000 /* check value against upper limit */
+#define OPT_VALUE 0xffL /* mask for presupplied value */
+#define OPT_HEX 0x100L /* int option is in hex */
+#define OPT_NOARG 0x200L /* option doesn't take argument */
+#define OPT_OR 0x400L /* OR in argument to value */
+#define OPT_INC 0x800L /* increment value */
+#define OPT_PRIV 0x1000L /* privileged option */
+#define OPT_STATIC 0x2000L /* string option goes into static array */
+#define OPT_LLIMIT 0x4000L /* check value against lower limit */
+#define OPT_ULIMIT 0x8000L /* check value against upper limit */
#define OPT_LIMITS (OPT_LLIMIT|OPT_ULIMIT)
-#define OPT_ZEROOK 0x10000 /* 0 value is OK even if not within limits */
-#define OPT_NOINCR 0x20000 /* value mustn't be increased */
-#define OPT_ZEROINF 0x40000 /* with OPT_NOINCR, 0 == infinity */
-#define OPT_A2INFO 0x100000 /* addr2 -> option_info to update */
-#define OPT_A2COPY 0x200000 /* addr2 -> second location to rcv value */
-#define OPT_ENABLE 0x400000 /* use *addr2 as enable for option */
-#define OPT_PRIVFIX 0x800000 /* can't be overridden if noauth */
-#define OPT_PREPASS 0x1000000 /* do this opt in pre-pass to find device */
-#define OPT_INITONLY 0x2000000 /* option can only be set in init phase */
-#define OPT_DEVEQUIV 0x4000000 /* equiv to device name */
+#define OPT_ZEROOK 0x10000L /* 0 value is OK even if not within limits */
+#define OPT_NOINCR 0x20000L /* value mustn't be increased */
+#define OPT_ZEROINF 0x40000L /* with OPT_NOINCR, 0 == infinity */
+#define OPT_A2INFO 0x100000L /* addr2 -> option_info to update */
+#define OPT_A2COPY 0x200000L /* addr2 -> second location to rcv value */
+#define OPT_ENABLE 0x400000L /* use *addr2 as enable for option */
+#define OPT_PRIVFIX 0x800000L /* can't be overridden if noauth */
+#define OPT_PREPASS 0x1000000L /* do this opt in pre-pass to find device */
+#define OPT_INITONLY 0x2000000L /* option can only be set in init phase */
+#define OPT_DEVEQUIV 0x4000000L /* equiv to device name */
#define OPT_DEVNAM (OPT_PREPASS | OPT_INITONLY | OPT_DEVEQUIV)
#define OPT_VAL(x) ((x) & OPT_VALUE)