Small modification to echo (removes unused library)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Small modification to echo (removes unused library)

Andrés Delfino
Up to revision 1.2 echo used exit to return a value to the
environment; now that it uses return, removing stdlib.h from echo.c is
OK, I think, since no more functions from it are used.

Index: src/bin/echo/echo.c
===================================================================
RCS file: /cvs/src/bin/echo/echo.c,v
retrieving revision 1.6
diff -u -r1.6 echo.c
--- src/bin/echo/echo.c 2 Jun 2003 23:32:07 -0000 1.6
+++ src/bin/echo/echo.c 21 Sep 2006 00:59:28 -0000
@@ -45,7 +45,6 @@
 #endif /* not lint */

 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>

 /* ARGSUSED */