summaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
committerEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
commitc7bda1ce659294d6e22c06e087f6f265983c7578 (patch)
tree4c6d2217f4d8306c59cf1096f8664e1cfd167213 /libbb/xfuncs.c
parent8854004b41065b3d081af7f3df13a100b0c8bfbe (diff)
downloadbusybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz
busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.bz2
busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.zip
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r--libbb/xfuncs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index da3775a59..01b2f87bc 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -2,7 +2,7 @@
2/* 2/*
3 * Utility routines. 3 * Utility routines.
4 * 4 *
5 * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org> 5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by 8 * it under the terms of the GNU General Public License as published by
@@ -85,7 +85,7 @@ extern char * bb_xstrndup (const char *s, int n) {
85 bb_error_msg_and_die("bb_xstrndup bug"); 85 bb_error_msg_and_die("bb_xstrndup bug");
86 86
87 t = xmalloc(++n); 87 t = xmalloc(++n);
88 88
89 return safe_strncpy(t,s,n); 89 return safe_strncpy(t,s,n);
90} 90}
91#endif 91#endif
@@ -104,7 +104,7 @@ FILE *bb_xfopen(const char *path, const char *mode)
104extern int bb_xopen(const char *pathname, int flags) 104extern int bb_xopen(const char *pathname, int flags)
105{ 105{
106 int ret; 106 int ret;
107 107
108 ret = open(pathname, flags, 0777); 108 ret = open(pathname, flags, 0777);
109 if (ret == -1) { 109 if (ret == -1) {
110 bb_perror_msg_and_die("%s", pathname); 110 bb_perror_msg_and_die("%s", pathname);
@@ -146,10 +146,10 @@ extern void bb_xread_all(int fd, void *buf, size_t count)
146extern unsigned char bb_xread_char(int fd) 146extern unsigned char bb_xread_char(int fd)
147{ 147{
148 char tmp; 148 char tmp;
149 149
150 bb_xread_all(fd, &tmp, 1); 150 bb_xread_all(fd, &tmp, 1);
151 151
152 return(tmp); 152 return(tmp);
153} 153}
154#endif 154#endif
155 155