aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid M. Syzdek <syzdek@bindlebinaries.com>2017-07-06 16:03:23 -0800
committerDavid M. Syzdek <syzdek@bindlebinaries.com>2017-07-06 16:04:06 -0800
commitec4eff31f580403a6b8efb153821e88df85bdf34 (patch)
treeef2e68b0ab8b84778bcc50cd746b55d93f12af99
parented098092621983de2b1bb6cdb6d6170b222143fa (diff)
downloadsecurecoreutils-ec4eff31f580403a6b8efb153821e88df85bdf34.tar.gz
securecoreutils-ec4eff31f580403a6b8efb153821e88df85bdf34.tar.bz2
securecoreutils-ec4eff31f580403a6b8efb153821e88df85bdf34.tar.xz
securecoreutils-ec4eff31f580403a6b8efb153821e88df85bdf34.zip
removing unused variable initializations.
-rw-r--r--src/widget-tail.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/widget-tail.c b/src/widget-tail.c
index d5c2b82..63ef5a4 100644
--- a/src/widget-tail.c
+++ b/src/widget-tail.c
@@ -313,7 +313,6 @@ int scu_widget_tail_bytes(scu_config * cnf, int fd, struct stat * sb,
313 return(-1); 313 return(-1);
314 }; 314 };
315 315
316 len = 1;
317 while ((len = read(fd, buff, sizeof(buff))) > 0) 316 while ((len = read(fd, buff, sizeof(buff))) > 0)
318 { 317 {
319 if ((len = write(STDOUT_FILENO, buff, len)) == -1) 318 if ((len = write(STDOUT_FILENO, buff, len)) == -1)
@@ -379,7 +378,6 @@ int scu_widget_tail_lines(scu_config * cnf, int fd, struct stat * sb,
379 { 378 {
380 len = 1; 379 len = 1;
381 linecount = 1; 380 linecount = 1;
382 pos = 0;
383 381
384 while ((linecount < optnum) && (len > 0)) 382 while ((linecount < optnum) && (len > 0))
385 { 383 {
@@ -451,7 +449,6 @@ int scu_widget_tail_lines(scu_config * cnf, int fd, struct stat * sb,
451 }; 449 };
452 }; 450 };
453 451
454 len = 1;
455 while ((len = read(fd, buff, sizeof(buff))) > 0) 452 while ((len = read(fd, buff, sizeof(buff))) > 0)
456 { 453 {
457 if ((len = write(STDOUT_FILENO, buff, len)) == -1) 454 if ((len = write(STDOUT_FILENO, buff, len)) == -1)