diff options
| author | Roy Marples <roy@marples.name> | 2008-03-20 16:47:51 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-03-20 16:47:51 +0000 |
| commit | 8d212424765794740d61d4b4fe5db3f2f6800eb9 (patch) | |
| tree | 5ec4ff1d3eed924448276135fdd2d11504cb78c4 /common.h | |
| parent | 74befdac5d0d3c0803cd15c3db85c3ba81064bc8 (diff) | |
| download | dhcpcd-8d212424765794740d61d4b4fe5db3f2f6800eb9.tar.xz | |
Change code style to match the BSDs in the hope the might adpot it instead of dhclient.
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -44,25 +44,25 @@ #ifdef __GLIBC__ # if ! defined(__UCLIBC__) && ! defined (__dietlibc__) # undef HAVE_STRLCPY -size_t strlcpy (char *dst, const char *src, size_t size); +size_t strlcpy(char *, const char *, size_t); # endif #endif #define HAVE_SRANDOMDEV #if defined(__GLIBC__) || defined(__NetBSD__) # undef HAVE_SRANDOMDEV -void srandomdev (void); +void srandomdev(void); #endif -int close_fds (void); -int close_on_exec (int fd); -char *get_line (FILE *fp); -int get_time (struct timeval *tp); -time_t uptime (void); -void writepid (int fd, pid_t pid); -void *xrealloc (void *ptr, size_t size); -void *xmalloc (size_t size); -void *xzalloc (size_t size); -char *xstrdup (const char *str); +int close_fds(void); +int close_on_exec(int); +ssize_t get_line(char **, size_t *, FILE *); +int get_time(struct timeval *); +time_t uptime(void); +void writepid(int, pid_t); +void *xrealloc(void *, size_t); +void *xmalloc(size_t); +void *xzalloc(size_t); +char *xstrdup(const char *); #endif |
