diff options
| author | Roy Marples <roy@marples.name> | 2009-02-12 01:09:37 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-02-12 01:09:37 +0000 |
| commit | 40dbcc878593552d31ecc4a1fcdf2f4672fd736b (patch) | |
| tree | 0008e276f64b331fca207e93602578b1e3455169 | |
| parent | eab2229cfa459ccbf8178ad4cdba68fbb7ebaf46 (diff) | |
| download | dhcpcd-40dbcc878593552d31ecc4a1fcdf2f4672fd736b.tar.xz | |
More style updates.
| -rw-r--r-- | bind.h | 2 | ||||
| -rw-r--r-- | common.c | 2 | ||||
| -rw-r--r-- | common.h | 14 | ||||
| -rw-r--r-- | dhcp.h | 3 | ||||
| -rw-r--r-- | dhcpf.h | 10 |
5 files changed, 15 insertions, 16 deletions
@@ -30,7 +30,7 @@ #include "config.h" #ifdef THERE_IS_NO_FORK -#define daemonise() {} +# define daemonise() {} #else pid_t daemonise(void); #endif @@ -1,6 +1,6 @@ /* * dhcpcd - DHCP client daemon - * Copyright 2006-2008 Roy Marples <roy@marples.name> + * Copyright 2006-2009 Roy Marples <roy@marples.name> * All rights reserved * Redistribution and use in source and binary forms, with or without @@ -1,6 +1,6 @@ /* * dhcpcd - DHCP client daemon - * Copyright 2006-2008 Roy Marples <roy@marples.name> + * Copyright 2006-2009 Roy Marples <roy@marples.name> * All rights reserved * Redistribution and use in source and binary forms, with or without @@ -38,12 +38,12 @@ #define UNCONST(a) ((void *)(unsigned long)(const void *)(a)) #define timeval_to_double(tv) ((tv)->tv_sec * 1.0 + (tv)->tv_usec * 1.0e-6) -#define timernorm(tvp) \ - do { \ - while ((tvp)->tv_usec >= 1000000) { \ - (tvp)->tv_sec++; \ - (tvp)->tv_usec -= 1000000; \ - } \ +#define timernorm(tvp) \ + do { \ + while ((tvp)->tv_usec >= 1000000) { \ + (tvp)->tv_sec++; \ + (tvp)->tv_usec -= 1000000; \ + } \ } while (0 /* CONSTCOND */); #if __GNUC__ > 2 || defined(__INTEL_COMPILER) @@ -77,8 +77,7 @@ #define PROBE_MAX_U PROBE_MAX * USECS_SECOND /* DHCP options */ -enum DHO -{ +enum DHO { DHO_PAD = 0, DHO_SUBNETMASK = 1, DHO_ROUTER = 3, @@ -1,6 +1,6 @@ /* * dhcpcd - DHCP client daemon - * Copyright 2006-2008 Roy Marples <roy@marples.name> + * Copyright 2006-2009 Roy Marples <roy@marples.name> * All rights reserved * Redistribution and use in source and binary forms, with or without @@ -42,12 +42,12 @@ int get_option_addr(uint32_t *, const struct dhcp_message *, uint8_t); int get_option_uint32(uint32_t *, const struct dhcp_message *, uint8_t); int get_option_uint16(uint16_t *, const struct dhcp_message *, uint8_t); int get_option_uint8(uint8_t *, const struct dhcp_message *, uint8_t); -#define is_bootp(m) (m && \ - !IN_LINKLOCAL(htonl((m)->yiaddr)) && \ - get_option_uint8(NULL, m, DHO_MESSAGETYPE) == -1) +#define is_bootp(m) (m && \ + !IN_LINKLOCAL(htonl((m)->yiaddr)) && \ + get_option_uint8(NULL, m, DHO_MESSAGETYPE) == -1) struct rt *get_option_routes(const struct dhcp_message *); ssize_t configure_env(char **, const char *, const struct dhcp_message *, - const struct if_options *); + const struct if_options *); ssize_t make_message(struct dhcp_message **, const struct interface *, uint8_t); int valid_dhcp_packet(unsigned char *); |
