strip: Rename strip() to doit() - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 2d9fd604cb38729a8175244ba4e42b9bf69179c5
DIR parent d9753a5280ec87370fd2ea52b3be5efba3297413
HTML Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Wed, 18 Mar 2026 17:38:04 +0100
strip: Rename strip() to doit()
Libmach already has a strip() function, producing a compilation error
due to the different prototype.
Diffstat:
M src/cmd/scc-strip.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/src/cmd/scc-strip.c b/src/cmd/scc-strip.c
@@ -27,7 +27,7 @@ error(char *fmt, ...)
}
static void
-strip(char *fname)
+doit(char *fname)
{
int type;
size_t r;
@@ -117,10 +117,10 @@ main(int argc, char *argv[])
} ARGEND
if (argc == 0) {
- strip("a.out");
+ doit("a.out");
} else {
for (; *argv; ++argv)
- strip(*argv);
+ doit(*argv);
}
return status;