jfb2 writes in Bug 119:
[oweals/busybox.git] / coreutils / md5_sha1_sum.c
index 64e069374e3540b0d1f215fff7394a212e570dd1..bd1c9fc29a60c6b085cc72ba0222373e8c0e73df 100644 (file)
@@ -32,7 +32,7 @@
 #define FLAG_CHECK     2
 #define FLAG_WARN      4
 
-/* This might be usefull elsewhere */
+/* This might be useful elsewhere */
 static unsigned char *hash_bin_to_hex(unsigned char *hash_value,
                                                                          unsigned char hash_length)
 {
@@ -55,7 +55,7 @@ static uint8_t *hash_file(const char *filename, uint8_t hash_algo)
        int src_fd;
 
        if (strcmp(filename, "-") == 0) {
-               src_fd = fileno(stdin);
+               src_fd = STDIN_FILENO;
        } else {
                src_fd = open(filename, O_RDONLY);
        }