diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-08-10 18:42:04 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-08-10 18:42:04 +0000 |
commit | 80dd0863e2e7b2988dd1e30e83197f241be55e70 (patch) | |
tree | 723c358121166ecc2ebbbf769b06b1b631ae08d7 | |
parent | e20b7d844a4579a93492680c5ade0c07d8349aaf (diff) | |
download | busybox-w32-80dd0863e2e7b2988dd1e30e83197f241be55e70.tar.gz busybox-w32-80dd0863e2e7b2988dd1e30e83197f241be55e70.tar.bz2 busybox-w32-80dd0863e2e7b2988dd1e30e83197f241be55e70.zip |
Small size optimization from Aaron Lehmann
-rw-r--r-- | ash.c | 4 | ||||
-rw-r--r-- | shell/ash.c | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -687,7 +687,7 @@ static void out2fmt (const char *, ...) | |||
687 | __attribute__((__format__(__printf__,1,2))); | 687 | __attribute__((__format__(__printf__,1,2))); |
688 | static int xwrite (int, const char *, int); | 688 | static int xwrite (int, const char *, int); |
689 | 689 | ||
690 | static void outstr (const char *p, FILE *file) { fputs(p, file); } | 690 | #define outstr(p,file) fputs(p, file) |
691 | static void out1str(const char *p) { outstr(p, stdout); } | 691 | static void out1str(const char *p) { outstr(p, stdout); } |
692 | static void out2str(const char *p) { outstr(p, stderr); } | 692 | static void out2str(const char *p) { outstr(p, stderr); } |
693 | 693 | ||
@@ -12785,7 +12785,7 @@ findvar(struct var **vpp, const char *name) | |||
12785 | /* | 12785 | /* |
12786 | * Copyright (c) 1999 Herbert Xu <herbert@debian.org> | 12786 | * Copyright (c) 1999 Herbert Xu <herbert@debian.org> |
12787 | * This file contains code for the times builtin. | 12787 | * This file contains code for the times builtin. |
12788 | * $Id: ash.c,v 1.18 2001/08/10 15:22:35 andersen Exp $ | 12788 | * $Id: ash.c,v 1.19 2001/08/10 18:42:04 andersen Exp $ |
12789 | */ | 12789 | */ |
12790 | static int timescmd (int argc, char **argv) | 12790 | static int timescmd (int argc, char **argv) |
12791 | { | 12791 | { |
diff --git a/shell/ash.c b/shell/ash.c index 1d597a66f..91b6241c6 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -687,7 +687,7 @@ static void out2fmt (const char *, ...) | |||
687 | __attribute__((__format__(__printf__,1,2))); | 687 | __attribute__((__format__(__printf__,1,2))); |
688 | static int xwrite (int, const char *, int); | 688 | static int xwrite (int, const char *, int); |
689 | 689 | ||
690 | static void outstr (const char *p, FILE *file) { fputs(p, file); } | 690 | #define outstr(p,file) fputs(p, file) |
691 | static void out1str(const char *p) { outstr(p, stdout); } | 691 | static void out1str(const char *p) { outstr(p, stdout); } |
692 | static void out2str(const char *p) { outstr(p, stderr); } | 692 | static void out2str(const char *p) { outstr(p, stderr); } |
693 | 693 | ||
@@ -12785,7 +12785,7 @@ findvar(struct var **vpp, const char *name) | |||
12785 | /* | 12785 | /* |
12786 | * Copyright (c) 1999 Herbert Xu <herbert@debian.org> | 12786 | * Copyright (c) 1999 Herbert Xu <herbert@debian.org> |
12787 | * This file contains code for the times builtin. | 12787 | * This file contains code for the times builtin. |
12788 | * $Id: ash.c,v 1.18 2001/08/10 15:22:35 andersen Exp $ | 12788 | * $Id: ash.c,v 1.19 2001/08/10 18:42:04 andersen Exp $ |
12789 | */ | 12789 | */ |
12790 | static int timescmd (int argc, char **argv) | 12790 | static int timescmd (int argc, char **argv) |
12791 | { | 12791 | { |