summaryrefslogtreecommitdiffstats
path: root/usr.bin/ldd/ldd.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2000-12-10 20:54:13 +0000
committercharnier <charnier@FreeBSD.org>2000-12-10 20:54:13 +0000
commit2363c20c22895b1268269faa05394a00eb81d89f (patch)
tree76ae0ebcbb286a797621dc00481d8871440423fc /usr.bin/ldd/ldd.c
parent1a7832d52733a1b945f4c6806e25643560852460 (diff)
downloadFreeBSD-src-2363c20c22895b1268269faa05394a00eb81d89f.zip
FreeBSD-src-2363c20c22895b1268269faa05394a00eb81d89f.tar.gz
Add rcsid. Remove unused #include. Remove error() definition and replace
with warn().
Diffstat (limited to 'usr.bin/ldd/ldd.c')
-rw-r--r--usr.bin/ldd/ldd.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/usr.bin/ldd/ldd.c b/usr.bin/ldd/ldd.c
index 5c25d05..e272b6b 100644
--- a/usr.bin/ldd/ldd.c
+++ b/usr.bin/ldd/ldd.c
@@ -26,15 +26,13 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * $FreeBSD$
*/
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/file.h>
-#include <sys/time.h>
-#include <sys/resource.h>
+#ifndef lint
+static const char rcsid[] =
+ "$FreeBSD$";
+#endif /* not lint */
+
#include <sys/wait.h>
#include <a.out.h>
#include <elf.h>
@@ -42,7 +40,6 @@
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include <unistd.h>
extern void dump_file __P((const char *));
@@ -73,7 +70,7 @@ char *argv[];
case 'f':
if (fmt1) {
if (fmt2)
- errx(1, "Too many formats");
+ errx(1, "too many formats");
fmt2 = optarg;
} else
fmt1 = optarg;
@@ -205,7 +202,7 @@ char *argv[];
break;
case 0:
rval |= execl(*argv, *argv, NULL) != 0;
- perror(*argv);
+ warn("%s", *argv);
_exit(1);
}
}
OpenPOWER on IntegriCloud