just whitespace

This commit is contained in:
Tim Riker
2006-01-25 00:08:53 +00:00
parent f64ff682a3
commit c1ef7bdd8d
254 changed files with 2002 additions and 2002 deletions

View File

@@ -17,7 +17,7 @@
#include <string.h>
/* returns the array number of the string */
extern int
extern int
compare_string_array(const char * const string_array[], const char *key)
{
int i;

View File

@@ -119,7 +119,7 @@ int copy_file(const char *source, const char *dest, int flags)
status = -1;
}
} else if (S_ISREG(source_stat.st_mode) || (flags & FILEUTILS_DEREFERENCE))
{
{
int src_fd;
int dst_fd;
#ifdef CONFIG_FEATURE_PRESERVE_HARDLINKS

View File

@@ -32,7 +32,7 @@ static ssize_t bb_full_fd_action(int src_fd, int dst_fd, size_t size)
while (!size || total < size)
{
ssize_t wrote, xread;
xread = safe_read(src_fd, buffer,
(!size || size - total > BUFSIZ) ? BUFSIZ : size - total);
@@ -53,7 +53,7 @@ static ssize_t bb_full_fd_action(int src_fd, int dst_fd, size_t size)
break;
}
}
out:
RELEASE_CONFIG_BUFFER(buffer);

View File

@@ -61,7 +61,7 @@ int correct_password ( const struct passwd *pw )
}
else
#endif
correct = pw-> pw_passwd;
correct = pw-> pw_passwd;
if ( correct == 0 || correct[0] == '\0' )
return 1;

View File

@@ -695,7 +695,7 @@ void bb_dump_add(const char *fmt)
/* start new linked list of format units */
/* NOSTRICT */
tfs = (FS *) xcalloc(1,sizeof(FS)); /*DBU:[dave@cray.com] start out NULL */
tfs = (FS *) xcalloc(1,sizeof(FS)); /*DBU:[dave@cray.com] start out NULL */
if (!bb_dump_fshead) {
bb_dump_fshead = tfs;
} else {

View File

@@ -212,7 +212,7 @@ static void sha1_end(unsigned char hval[], struct sha1_ctx_t *ctx)
ctx->wbuf[cnt++] = 0;
/* assemble the eight byte counter in the buffer in big-endian */
/* format */
/* format */
ctx->wbuf[14] = swap_b32((ctx->count[1] << 3) | (ctx->count[0] >> 29));
ctx->wbuf[15] = swap_b32(ctx->count[0] << 3);
@@ -492,12 +492,12 @@ static void md5_hash_block(const void *buffer, size_t len, struct md5_ctx_t *ctx
# define OP(a, b, c, d, s, T) \
do \
{ \
{ \
a += FF (b, c, d) + (*cwp++ = SWAP (*words)) + T; \
++words; \
CYCLIC (a, s); \
a += b; \
} \
} \
while (0)
/* It is unfortunate that C does not provide an operator for

View File

@@ -206,8 +206,8 @@ int INET6_resolve(const char *name, struct sockaddr_in6 *sin6)
#ifndef IN6_IS_ADDR_UNSPECIFIED
# define IN6_IS_ADDR_UNSPECIFIED(a) \
(((__u32 *) (a))[0] == 0 && ((__u32 *) (a))[1] == 0 && \
((__u32 *) (a))[2] == 0 && ((__u32 *) (a))[3] == 0)
(((__u32 *) (a))[0] == 0 && ((__u32 *) (a))[1] == 0 && \
((__u32 *) (a))[2] == 0 && ((__u32 *) (a))[3] == 0)
#endif

View File

@@ -56,7 +56,7 @@ char *query_loop(const char *device)
int fd;
bb_loop_info loopinfo;
char *dev=0;
if ((fd = open(device, O_RDONLY)) < 0) return 0;
if (!ioctl(fd, BB_LOOP_GET_STATUS, &loopinfo))
dev=bb_xasprintf("%ld %s", (long) loopinfo.lo_offset,
@@ -64,7 +64,7 @@ char *query_loop(const char *device)
close(fd);
return dev;
}
}
int del_loop(const char *device)
@@ -74,7 +74,7 @@ int del_loop(const char *device)
if ((fd = open(device, O_RDONLY)) < 0) return 1;
rc=ioctl(fd, LOOP_CLR_FD, 0);
close(fd);
return rc;
}

View File

@@ -65,7 +65,7 @@
/* Using either the original stdio implementation (from dev86) or
* my original stdio rewrite. Macros were:
* #define ferror(fp) (((fp)->mode&__MODE_ERR) != 0)
* #define feof(fp) (((fp)->mode&__MODE_EOF) != 0)
* #define feof(fp) (((fp)->mode&__MODE_EOF) != 0)
* #define clearerr(fp) ((fp)->mode &= ~(__MODE_EOF|__MODE_ERR),0)
*/
#define SET_FERROR_UNLOCKED(S) ((S)->mode |= __MODE_ERR)

View File

@@ -70,7 +70,7 @@ char bb_process_escape_sequence(const char **ptr)
if (d >= base) {
#ifdef WANT_HEX_ESCAPES
if ((base == 16) && (!--num_digits)) {
/* return '\\'; */
/* return '\\'; */
--q;
}
#endif

View File

@@ -46,7 +46,7 @@ static security_context_t current_sid=NULL;
void
renew_current_security_context(void)
{
if (current_sid)
if (current_sid)
freecon(current_sid); /* Release old context */
getcon(&current_sid); /* update */
@@ -56,7 +56,7 @@ renew_current_security_context(void)
void
set_current_security_context(security_context_t sid)
{
if (current_sid)
if (current_sid)
freecon(current_sid); /* Release old context */
current_sid=sid;
@@ -84,7 +84,7 @@ void run_shell ( const char *shell, int loginshell, const char *command, const c
args [0] = bb_get_last_path_component ( bb_xstrdup ( shell ));
if ( loginshell )
if ( loginshell )
args [0] = bb_xasprintf ("-%s", args [0]);
if ( command ) {

View File

@@ -58,7 +58,7 @@ void setup_environment ( const char *shell, int loginshell, int changeenv, const
* to change to that directory. There is no "default" home
* directory.
* Some systems default to HOME=/
*/
*/
if ( chdir ( pw-> pw_dir )) {
if ( chdir ( "/" )) {
syslog ( LOG_WARNING, "unable to cd to %s' for user %s'\n", pw-> pw_dir, pw-> pw_name );
@@ -81,7 +81,7 @@ void setup_environment ( const char *shell, int loginshell, int changeenv, const
}
else if ( changeenv ) {
/* Set HOME, SHELL, and if not becoming a super-user,
USER and LOGNAME. */
USER and LOGNAME. */
xsetenv ( "HOME", pw-> pw_dir );
xsetenv ( "SHELL", shell );
if ( pw-> pw_uid ) {

View File

@@ -22,7 +22,7 @@ extern long bb_xgetlarg(const char *arg, int base, long lower, long upper)
assert(arg!=NULL);
/* Don't allow leading whitespace.
* Wrap isspace in () to make sure we call the
* Wrap isspace in () to make sure we call the
* function rather than the macro. */
if ((isspace)(*arg)) {
bb_show_usage();

View File

@@ -75,7 +75,7 @@ unsigned long bb_xgetularg_bnd_sfx(const char *arg, int base,
++e;
r *= suffixes->mult;
break;
}
}
++suffixes;
}
}

View File

@@ -14,7 +14,7 @@
#include "libbb.h"
extern char *xreadlink(const char *path)
{
{
static const int GROWBY = 80; /* how large we will grow strings by */
char *buf = NULL;