aboutsummaryrefslogtreecommitdiff
path: root/md5sum.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-07-12 20:26:32 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-07-12 20:26:32 +0000
commit7baffca714b6264cd5cfd05c314a59aeea938f8f (patch)
tree10dcece1e0bb88e35aa95c3a68896ad426e43f7a /md5sum.c
parent2e2b0c24a40ade30387df0a9114a8ce5c77f059f (diff)
downloadbusybox-w32-7baffca714b6264cd5cfd05c314a59aeea938f8f.tar.gz
busybox-w32-7baffca714b6264cd5cfd05c314a59aeea938f8f.tar.bz2
busybox-w32-7baffca714b6264cd5cfd05c314a59aeea938f8f.zip
Patch from vodz:
Changed email address cmdedit API change optimizations for traceroute and md5sum added a new shared create_icmp_socket() function git-svn-id: svn://busybox.net/trunk/busybox@3078 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'md5sum.c')
-rw-r--r--md5sum.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/md5sum.c b/md5sum.c
index 72bc08624..bb4d115ca 100644
--- a/md5sum.c
+++ b/md5sum.c
@@ -770,12 +770,10 @@ static int md5_file(const char *filename,
770 have_read_stdin = 1; 770 have_read_stdin = 1;
771 fp = stdin; 771 fp = stdin;
772 } else { 772 } else {
773 fp = fopen(filename, "r"); 773 fp = wfopen(filename, "r");
774 if (fp == NULL) { 774 if (fp == NULL)
775 perror_msg("%s", filename);
776 return FALSE; 775 return FALSE;
777 } 776 }
778 }
779 777
780 if (md5_stream(fp, md5_result)) { 778 if (md5_stream(fp, md5_result)) {
781 perror_msg("%s", filename); 779 perror_msg("%s", filename);
@@ -807,12 +805,10 @@ static int md5_check(const char *checkfile_name)
807 have_read_stdin = 1; 805 have_read_stdin = 1;
808 checkfile_stream = stdin; 806 checkfile_stream = stdin;
809 } else { 807 } else {
810 checkfile_stream = fopen(checkfile_name, "r"); 808 checkfile_stream = wfopen(checkfile_name, "r");
811 if (checkfile_stream == NULL) { 809 if (checkfile_stream == NULL)
812 perror_msg("%s", checkfile_name);
813 return FALSE; 810 return FALSE;
814 } 811 }
815 }
816 812
817 line_number = 0; 813 line_number = 0;
818 814