jfb2 writes in Bug 119:
[oweals/busybox.git] / coreutils / md5_sha1_sum.c
index 83f6da18067167140c396fcab143cd2713667c8a..bd1c9fc29a60c6b085cc72ba0222373e8c0e73df 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  Copyright (C) 2003 Glenn L. McGrath
- *  Copyright (C) 2003 Erik Andersen
- * 
+ *  Copyright (C) 2003-2004 Erik Andersen
+ *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation; either version 2 of the License, or
@@ -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);
        }