diff options
author | Mike Frysinger | 2006-04-16 20:54:19 +0000 |
---|---|---|
committer | Mike Frysinger | 2006-04-16 20:54:19 +0000 |
commit | 00d10a94f32459f5f2c42c374ec61585dfffbcbd (patch) | |
tree | cb6450825653fc565826be8838d424c5b374662e /miscutils | |
parent | f284c767e5e8d138589f760d03dc2c681f326b25 (diff) | |
download | busybox-00d10a94f32459f5f2c42c374ec61585dfffbcbd.zip busybox-00d10a94f32459f5f2c42c374ec61585dfffbcbd.tar.gz |
uncuddle if statements
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/less.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/miscutils/less.c b/miscutils/less.c index a64fc50..6b0cab5 100644 --- a/miscutils/less.c +++ b/miscutils/less.c @@ -215,7 +215,7 @@ static void data_readlines(void) for (i = 0; (feof(fp)==0) && (i <= MAXLINES); i++) { strcpy(current_line, ""); fgets(current_line, 256, fp); - if(fp != stdin) + if (fp != stdin) bb_xferror(fp, filename); flines = xrealloc(flines, (i+1) * sizeof(char *)); flines[i] = bb_xstrdup(current_line); @@ -229,7 +229,7 @@ static void data_readlines(void) fclose(fp); - if(inp == NULL) + if (inp == NULL) inp = (inp_stdin) ? bb_xfopen(CURRENT_TTY, "r") : stdin; if (flags & FLAG_N) @@ -358,7 +358,7 @@ static void buffer_init(void) { int i; - if(buffer == NULL) { + if (buffer == NULL) { /* malloc the number of lines needed for the buffer */ buffer = xrealloc(buffer, height * sizeof(char *)); } else { @@ -677,8 +677,8 @@ static void regex_process(void) uncomp_regex[0] = 0; fgets(uncomp_regex, sizeof(uncomp_regex), stdin); i = strlen(uncomp_regex); - if(i > 0) { - if(uncomp_regex[i-1] == '\n') + if (i > 0) { + if (uncomp_regex[i-1] == '\n') uncomp_regex[i-1] = '\0'; else while((i = getchar()) != '\n' && i != EOF); |