whitespace fixes (leading spaces to tab)

This commit is contained in:
Denis Vlasenko 2007-01-13 21:06:21 +00:00
parent 2418288cac
commit 150f402b36
11 changed files with 13 additions and 13 deletions

View File

@ -1008,7 +1008,7 @@ static void compress_block(ct_data * ltree, ct_data * dtree);
# define SEND_CODE(c, tree) \ # define SEND_CODE(c, tree) \
{ \ { \
if (verbose > 1) bb_error_msg("\ncd %3d ",(c)); \ if (verbose > 1) bb_error_msg("\ncd %3d ",(c)); \
send_bits(tree[c].Code, tree[c].Len); \ send_bits(tree[c].Code, tree[c].Len); \
} }
#endif #endif

View File

@ -103,7 +103,7 @@ char get_header_cpio(archive_handle_t *archive_handle)
/* Always round up */ /* Always round up */
printf("%d blocks\n", (int) (archive_handle->offset % 512 ? printf("%d blocks\n", (int) (archive_handle->offset % 512 ?
archive_handle->offset / 512 + 1 : archive_handle->offset / 512 + 1 :
archive_handle->offset / 512 archive_handle->offset / 512
)); ));
if (saved_hardlinks) { /* Bummer - we still have unresolved hardlinks */ if (saved_hardlinks) { /* Bummer - we still have unresolved hardlinks */
hardlinks_t *tmp = saved_hardlinks; hardlinks_t *tmp = saved_hardlinks;

View File

@ -72,7 +72,7 @@ int chown_main(int argc, char **argv)
*groupName = ':'; /* replace '.' with ':' */ *groupName = ':'; /* replace '.' with ':' */
/* First, try parsing "user[:[group]]" */ /* First, try parsing "user[:[group]]" */
if (!groupName) { /* "user" */ if (!groupName) { /* "user" */
ugid.uid = get_ug_id(*argv, xuname2uid); ugid.uid = get_ug_id(*argv, xuname2uid);
} else if (groupName == *argv) { /* ":group" */ } else if (groupName == *argv) { /* ":group" */
ugid.gid = get_ug_id(groupName + 1, xgroup2gid); ugid.gid = get_ug_id(groupName + 1, xgroup2gid);

View File

@ -86,7 +86,7 @@ int install_main(int argc, char **argv)
break; break;
} }
} }
if ((flags & (OPT_OWNER|OPT_GROUP)) if ((flags & (OPT_OWNER|OPT_GROUP))
&& lchown(*argv, uid, gid) == -1 && lchown(*argv, uid, gid) == -1
) { ) {
bb_perror_msg("cannot change ownership of %s", *argv); bb_perror_msg("cannot change ownership of %s", *argv);

View File

@ -2648,7 +2648,7 @@ int awk_main(int argc, char **argv)
char *vnames = (char *)vNames; /* cheat */ char *vnames = (char *)vNames; /* cheat */
char *vvalues = (char *)vValues; char *vvalues = (char *)vValues;
/* Undo busybox.c, or else strtod may eat ','! This breaks parsing: /* Undo busybox.c, or else strtod may eat ','! This breaks parsing:
* $1,$2 == '$1,' '$2', NOT '$1' ',' '$2' */ * $1,$2 == '$1,' '$2', NOT '$1' ',' '$2' */
if (ENABLE_LOCALE_SUPPORT) if (ENABLE_LOCALE_SUPPORT)
setlocale(LC_NUMERIC, "C"); setlocale(LC_NUMERIC, "C");

View File

@ -423,8 +423,8 @@ extern long xgroup2gid(const char *name);
extern unsigned long get_ug_id(const char *s, long (*xname2id)(const char *)); extern unsigned long get_ug_id(const char *s, long (*xname2id)(const char *));
/* from chpst. Does not die, returns 0 on failure */ /* from chpst. Does not die, returns 0 on failure */
struct bb_uidgid_t { struct bb_uidgid_t {
uid_t uid; uid_t uid;
gid_t gid; gid_t gid;
}; };
extern int get_uidgid(struct bb_uidgid_t*, const char*, int numeric_ok); extern int get_uidgid(struct bb_uidgid_t*, const char*, int numeric_ok);
/* what is this? */ /* what is this? */

View File

@ -335,7 +335,7 @@ free_session(struct tsession *ts)
free(ts); free(ts);
/* scan all sessions and find new maxfd */ /* scan all sessions and find new maxfd */
ts = sessions; ts = sessions;
maxfd = 0; maxfd = 0;
while (ts) { while (ts) {
if (maxfd < ts->ptyfd) if (maxfd < ts->ptyfd)

View File

@ -94,7 +94,7 @@ do_it_now:
pid = getpid(); pid = getpid();
sid = getsid(pid); sid = getsid(pid);
/* Now kill all processes except our session */ /* Now kill all processes except our session */
while ((p = procps_scan(p, PSSCAN_PID|PSSCAN_SID))) { while ((p = procps_scan(p, PSSCAN_PID|PSSCAN_SID))) {
if (p->sid != sid && p->pid != pid && p->pid != 1) if (p->sid != sid && p->pid != pid && p->pid != 1)
kill(p->pid, signo); kill(p->pid, signo);
} }

View File

@ -179,8 +179,8 @@ static void do_scroll(WINDOW *win, int *scroll, int n)
* Display a menu for choosing among a number of options * Display a menu for choosing among a number of options
*/ */
int dialog_menu(const char *title, const char *prompt, int height, int width, int dialog_menu(const char *title, const char *prompt, int height, int width,
int menu_height, const char *current, int item_no, int menu_height, const char *current, int item_no,
const char *const *items) const char *const *items)
{ {
int i, j, x, y, box_x, box_y; int i, j, x, y, box_x, box_y;
int key = 0, button = 0, scroll = 0, choice = 0; int key = 0, button = 0, scroll = 0, choice = 0;

View File

@ -201,7 +201,7 @@ static void log_to_shmem(const char *msg, int len)
/* Circular Buffer Algorithm: /* Circular Buffer Algorithm:
* -------------------------- * --------------------------
* tail == position where to store next syslog message. * tail == position where to store next syslog message.
* head == position of next message to retrieve ("print"). * head == position of next message to retrieve ("print").
* if head == tail, there is no "unprinted" messages left. * if head == tail, there is no "unprinted" messages left.
* head is typically advanced by separate "reader" program, * head is typically advanced by separate "reader" program,

View File

@ -155,7 +155,7 @@ static char super_block_buffer[BLOCK_SIZE];
/* gcc likes this more (code is smaller) than macro variant */ /* gcc likes this more (code is smaller) than macro variant */
static ATTRIBUTE_ALWAYS_INLINE unsigned div_roundup(unsigned size, unsigned n) static ATTRIBUTE_ALWAYS_INLINE unsigned div_roundup(unsigned size, unsigned n)
{ {
return (size + n-1) / n; return (size + n-1) / n;
} }
#if ENABLE_FEATURE_MINIX2 #if ENABLE_FEATURE_MINIX2