stray trailing tabs removed
This commit is contained in:
parent
2a86a61c27
commit
2f6ae43b9c
@ -414,7 +414,7 @@ static int init_text_buffer(char *fn)
|
|||||||
if (text_size < 10240)
|
if (text_size < 10240)
|
||||||
text_size = 10240; // have a minimum size for new files
|
text_size = 10240; // have a minimum size for new files
|
||||||
screenbegin = dot = end = text = xzalloc(text_size);
|
screenbegin = dot = end = text = xzalloc(text_size);
|
||||||
|
|
||||||
if (fn != current_filename) {
|
if (fn != current_filename) {
|
||||||
free(current_filename);
|
free(current_filename);
|
||||||
current_filename = xstrdup(fn);
|
current_filename = xstrdup(fn);
|
||||||
@ -434,7 +434,7 @@ static int init_text_buffer(char *fn)
|
|||||||
memset(mark, 0, sizeof(mark));
|
memset(mark, 0, sizeof(mark));
|
||||||
#endif
|
#endif
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void edit_file(char * fn)
|
static void edit_file(char * fn)
|
||||||
{
|
{
|
||||||
@ -2210,7 +2210,7 @@ static char readit(void) // read (maybe cursor) key from stdin
|
|||||||
if (errno == EINTR)
|
if (errno == EINTR)
|
||||||
goto ri0; // interrupted sys call
|
goto ri0; // interrupted sys call
|
||||||
if (errno == EBADF || errno == EFAULT || errno == EINVAL
|
if (errno == EBADF || errno == EFAULT || errno == EINVAL
|
||||||
|| errno == EIO)
|
|| errno == EIO)
|
||||||
editing = 0;
|
editing = 0;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
}
|
}
|
||||||
@ -2426,7 +2426,7 @@ static int file_insert(const char * fn, char *p
|
|||||||
* so we check fileperms too */
|
* so we check fileperms too */
|
||||||
!(statbuf.st_mode & (S_IWUSR | S_IWGRP | S_IWOTH))))
|
!(statbuf.st_mode & (S_IWUSR | S_IWGRP | S_IWOTH))))
|
||||||
{
|
{
|
||||||
SET_READONLY_FILE(readonly_mode);
|
SET_READONLY_FILE(readonly_mode);
|
||||||
}
|
}
|
||||||
return cnt;
|
return cnt;
|
||||||
}
|
}
|
||||||
|
@ -170,8 +170,8 @@ procps_status_t *procps_scan(procps_status_t* sp, int flags)
|
|||||||
if (flags & PSSCAN_CONTEXT) {
|
if (flags & PSSCAN_CONTEXT) {
|
||||||
if (getpidcon(sp->pid, &sp->context) < 0)
|
if (getpidcon(sp->pid, &sp->context) < 0)
|
||||||
sp->context = NULL;
|
sp->context = NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
filename_tail = filename + sprintf(filename, "/proc/%d", pid);
|
filename_tail = filename + sprintf(filename, "/proc/%d", pid);
|
||||||
|
|
||||||
|
@ -670,7 +670,7 @@ int ioctl_or_perror(int fd, int request, void *argp, const char *fmt,...)
|
|||||||
int bb_ioctl_or_warn(int fd, int request, void *argp, const char *ioctl_name)
|
int bb_ioctl_or_warn(int fd, int request, void *argp, const char *ioctl_name)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = ioctl(fd, request, argp);
|
ret = ioctl(fd, request, argp);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
bb_perror_msg("%s", ioctl_name);
|
bb_perror_msg("%s", ioctl_name);
|
||||||
@ -685,7 +685,7 @@ void bb_xioctl(int fd, int request, void *argp, const char *ioctl_name)
|
|||||||
int bb_ioctl_or_warn(int fd, int request, void *argp)
|
int bb_ioctl_or_warn(int fd, int request, void *argp)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = ioctl(fd, request, argp);
|
ret = ioctl(fd, request, argp);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
bb_perror_msg("ioctl %#x failed", request);
|
bb_perror_msg("ioctl %#x failed", request);
|
||||||
|
@ -416,7 +416,7 @@ int devfsd_main(int argc, char **argv)
|
|||||||
|
|
||||||
if (ENABLE_DEVFSD_FG_NP && no_polling)
|
if (ENABLE_DEVFSD_FG_NP && no_polling)
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
||||||
if (ENABLE_DEVFSD_VERBOSE || ENABLE_DEBUG)
|
if (ENABLE_DEVFSD_VERBOSE || ENABLE_DEBUG)
|
||||||
logmode = LOGMODE_BOTH;
|
logmode = LOGMODE_BOTH;
|
||||||
else if (do_daemon == TRUE)
|
else if (do_daemon == TRUE)
|
||||||
@ -432,7 +432,7 @@ int devfsd_main(int argc, char **argv)
|
|||||||
} else if (ENABLE_DEVFSD_FG_NP) {
|
} else if (ENABLE_DEVFSD_FG_NP) {
|
||||||
setpgid(0, 0); /* Become process group leader */
|
setpgid(0, 0); /* Become process group leader */
|
||||||
}
|
}
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
do_scan = do_servicing(fd, event_mask);
|
do_scan = do_servicing(fd, event_mask);
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ int runlevel_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
puts("unknown");
|
puts("unknown");
|
||||||
|
|
||||||
if (ENABLE_FEATURE_CLEAN_UP)
|
if (ENABLE_FEATURE_CLEAN_UP)
|
||||||
endutent();
|
endutent();
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user