I made these little simplifications a while back, bug forgot to
authorEric Andersen <andersen@codepoet.org>
Tue, 6 Mar 2001 23:14:43 +0000 (23:14 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 6 Mar 2001 23:14:43 +0000 (23:14 -0000)
check this stuff in.
 -Erik

coreutils/du.c
coreutils/ls.c
du.c
ls.c

index 6197b0bc18115d40da1743c957be38691a5803bd..5636de8eacc1564ee938b1566a52664bb238484b 100644 (file)
@@ -158,10 +158,8 @@ int du_main(int argc, char **argv)
 #ifdef BB_FEATURE_HUMAN_READABLE
                        case 'h': du_disp_hr = 0;        break;
                        case 'm': du_disp_hr = MEGABYTE; break;
-                       case 'k': du_disp_hr = KILOBYTE; break;
-#else
-                       case 'k': break;
 #endif
+                       case 'k': break;
                        default:
                                        show_usage();
                        }
@@ -187,7 +185,7 @@ int du_main(int argc, char **argv)
        return status;
 }
 
-/* $Id: du.c,v 1.38 2001/02/20 06:14:07 andersen Exp $ */
+/* $Id: du.c,v 1.39 2001/03/06 23:14:43 andersen Exp $ */
 /*
 Local Variables:
 c-file-style: "linux"
index 44bb8cddbdc565921105637360406c4914d26609..d8666152eaac194d03c3a7139b7da7264eb374d9 100644 (file)
@@ -827,10 +827,8 @@ extern int ls_main(int argc, char **argv)
 #endif
 #ifdef BB_FEATURE_HUMAN_READABLE
                        case 'h': ls_disp_hr = 0; break;
-                       case 'k': ls_disp_hr = KILOBYTE; break;
-#else
-                       case 'k': break;
 #endif
+                       case 'k': break;
                        default:
                                goto print_usage_message;
                }
diff --git a/du.c b/du.c
index 6197b0bc18115d40da1743c957be38691a5803bd..5636de8eacc1564ee938b1566a52664bb238484b 100644 (file)
--- a/du.c
+++ b/du.c
@@ -158,10 +158,8 @@ int du_main(int argc, char **argv)
 #ifdef BB_FEATURE_HUMAN_READABLE
                        case 'h': du_disp_hr = 0;        break;
                        case 'm': du_disp_hr = MEGABYTE; break;
-                       case 'k': du_disp_hr = KILOBYTE; break;
-#else
-                       case 'k': break;
 #endif
+                       case 'k': break;
                        default:
                                        show_usage();
                        }
@@ -187,7 +185,7 @@ int du_main(int argc, char **argv)
        return status;
 }
 
-/* $Id: du.c,v 1.38 2001/02/20 06:14:07 andersen Exp $ */
+/* $Id: du.c,v 1.39 2001/03/06 23:14:43 andersen Exp $ */
 /*
 Local Variables:
 c-file-style: "linux"
diff --git a/ls.c b/ls.c
index 44bb8cddbdc565921105637360406c4914d26609..d8666152eaac194d03c3a7139b7da7264eb374d9 100644 (file)
--- a/ls.c
+++ b/ls.c
@@ -827,10 +827,8 @@ extern int ls_main(int argc, char **argv)
 #endif
 #ifdef BB_FEATURE_HUMAN_READABLE
                        case 'h': ls_disp_hr = 0; break;
-                       case 'k': ls_disp_hr = KILOBYTE; break;
-#else
-                       case 'k': break;
 #endif
+                       case 'k': break;
                        default:
                                goto print_usage_message;
                }