aboutsummaryrefslogtreecommitdiff
path: root/coreutils/md5_sha1_sum.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/md5_sha1_sum.c')
-rw-r--r--coreutils/md5_sha1_sum.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c
index aea43ff8c..49766a925 100644
--- a/coreutils/md5_sha1_sum.c
+++ b/coreutils/md5_sha1_sum.c
@@ -6,14 +6,6 @@
6 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 6 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
7 */ 7 */
8 8
9#include <fcntl.h>
10#include <limits.h>
11#include <stdio.h>
12#include <stdint.h>
13#include <stdlib.h>
14#include <string.h>
15#include <unistd.h>
16
17#include "busybox.h" 9#include "busybox.h"
18 10
19typedef enum { HASH_SHA1, HASH_MD5 } hash_algo_t; 11typedef enum { HASH_SHA1, HASH_MD5 } hash_algo_t;
@@ -129,7 +121,7 @@ static int hash_files(int argc, char **argv, hash_algo_t hash_algo)
129 if (strcmp(file_ptr, "-") == 0) { 121 if (strcmp(file_ptr, "-") == 0) {
130 pre_computed_stream = stdin; 122 pre_computed_stream = stdin;
131 } else { 123 } else {
132 pre_computed_stream = bb_xfopen(file_ptr, "r"); 124 pre_computed_stream = xfopen(file_ptr, "r");
133 } 125 }
134 126
135 while ((line = bb_get_chomped_line_from_file(pre_computed_stream)) != NULL) { 127 while ((line = bb_get_chomped_line_from_file(pre_computed_stream)) != NULL) {