summaryrefslogtreecommitdiff
path: root/openbsd-compat/openbsd-compat.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2016-08-02 09:44:25 +1000
committerDarren Tucker <dtucker@zip.com.au>2016-08-02 09:44:25 +1000
commitc20dccb5614c5714f4155dda01bcdebf97cfae7e (patch)
tree52a7fb54f19aae274f12f1c9db7eaeb1922137aa /openbsd-compat/openbsd-compat.h
parent30f9bd1c0963c23bfba8468dfd26aa17609ba42f (diff)
Strip trailing whitespace.
Mechanically strip trailing whitespace on files not synced with OpenBSD (or in the case of bsd-snprint.c, rsync).
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r--openbsd-compat/openbsd-compat.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index 37d2064cd..4e7629a91 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -64,7 +64,7 @@ void closefrom(int);
64 64
65#ifndef HAVE_GETCWD 65#ifndef HAVE_GETCWD
66char *getcwd(char *pt, size_t size); 66char *getcwd(char *pt, size_t size);
67#endif 67#endif
68 68
69#ifndef HAVE_REALLOCARRAY 69#ifndef HAVE_REALLOCARRAY
70void *reallocarray(void *, size_t, size_t); 70void *reallocarray(void *, size_t, size_t);
@@ -94,7 +94,7 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
94#ifndef HAVE_STRLCAT 94#ifndef HAVE_STRLCAT
95/* #include <sys/types.h> XXX Still needed? */ 95/* #include <sys/types.h> XXX Still needed? */
96size_t strlcat(char *dst, const char *src, size_t siz); 96size_t strlcat(char *dst, const char *src, size_t siz);
97#endif 97#endif
98 98
99#ifndef HAVE_SETENV 99#ifndef HAVE_SETENV
100int setenv(register const char *name, register const char *value, int rewrite); 100int setenv(register const char *name, register const char *value, int rewrite);
@@ -113,11 +113,11 @@ char *strptime(const char *buf, const char *fmt, struct tm *tm);
113int mkstemps(char *path, int slen); 113int mkstemps(char *path, int slen);
114int mkstemp(char *path); 114int mkstemp(char *path);
115char *mkdtemp(char *path); 115char *mkdtemp(char *path);
116#endif 116#endif
117 117
118#ifndef HAVE_DAEMON 118#ifndef HAVE_DAEMON
119int daemon(int nochdir, int noclose); 119int daemon(int nochdir, int noclose);
120#endif 120#endif
121 121
122#ifndef HAVE_DIRNAME 122#ifndef HAVE_DIRNAME
123char *dirname(const char *path); 123char *dirname(const char *path);
@@ -142,7 +142,7 @@ const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
142 142
143#ifndef HAVE_INET_ATON 143#ifndef HAVE_INET_ATON
144int inet_aton(const char *cp, struct in_addr *addr); 144int inet_aton(const char *cp, struct in_addr *addr);
145#endif 145#endif
146 146
147#ifndef HAVE_STRSEP 147#ifndef HAVE_STRSEP
148char *strsep(char **stringp, const char *delim); 148char *strsep(char **stringp, const char *delim);
@@ -199,7 +199,7 @@ u_int32_t arc4random_uniform(u_int32_t);
199 199
200#ifndef HAVE_ASPRINTF 200#ifndef HAVE_ASPRINTF
201int asprintf(char **, const char *, ...); 201int asprintf(char **, const char *, ...);
202#endif 202#endif
203 203
204#ifndef HAVE_OPENPTY 204#ifndef HAVE_OPENPTY
205# include <sys/ioctl.h> /* for struct winsize */ 205# include <sys/ioctl.h> /* for struct winsize */
@@ -210,7 +210,7 @@ int openpty(int *, int *, char *, struct termios *, struct winsize *);
210 210
211#ifndef HAVE_SNPRINTF 211#ifndef HAVE_SNPRINTF
212int snprintf(char *, size_t, SNPRINTF_CONST char *, ...); 212int snprintf(char *, size_t, SNPRINTF_CONST char *, ...);
213#endif 213#endif
214 214
215#ifndef HAVE_STRTOLL 215#ifndef HAVE_STRTOLL
216long long strtoll(const char *, char **, int); 216long long strtoll(const char *, char **, int);