Module Name: src
Committed By: dholland
Date: Mon Sep 7 04:49:03 UTC 2009
Modified Files:
src/usr.bin/ldd: ldd.h ldd_elfxx.c
Log Message:
Sprinkle a little const. no object diffs
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/ldd/ldd.h src/usr.bin/ldd/ldd_elfxx.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/ldd/ldd.h
diff -u src/usr.bin/ldd/ldd.h:1.3 src/usr.bin/ldd/ldd.h:1.4
--- src/usr.bin/ldd/ldd.h:1.3 Sat Aug 22 06:52:16 2009
+++ src/usr.bin/ldd/ldd.h Mon Sep 7 04:49:03 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: ldd.h,v 1.3 2009/08/22 06:52:16 mrg Exp $ */
+/* $NetBSD: ldd.h,v 1.4 2009/09/07 04:49:03 dholland Exp $ */
/*
* Copyright (c) 2008 Matthew R. Green
@@ -28,10 +28,10 @@
* SUCH DAMAGE.
*/
-int elf32_ldd(int, char *, char *, char *);
+int elf32_ldd(int, char *, const char *, const char *);
#ifdef _LP64
-int elf64_ldd(int, char *, char *, char *);
+int elf64_ldd(int, char *, const char *, const char *);
#define elf_ldd elf64_ldd
#else
#define elf_ldd elf32_ldd
Index: src/usr.bin/ldd/ldd_elfxx.c
diff -u src/usr.bin/ldd/ldd_elfxx.c:1.3 src/usr.bin/ldd/ldd_elfxx.c:1.4
--- src/usr.bin/ldd/ldd_elfxx.c:1.3 Thu Aug 20 19:17:19 2009
+++ src/usr.bin/ldd/ldd_elfxx.c Mon Sep 7 04:49:03 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: ldd_elfxx.c,v 1.3 2009/08/20 19:17:19 he Exp $ */
+/* $NetBSD: ldd_elfxx.c,v 1.4 2009/09/07 04:49:03 dholland Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: ldd_elfxx.c,v 1.3 2009/08/20 19:17:19 he Exp $");
+__RCSID("$NetBSD: ldd_elfxx.c,v 1.4 2009/09/07 04:49:03 dholland Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -89,7 +89,7 @@
* returns 0 on success and -1 on failure.
*/
int
-ELFNAME(ldd)(int fd, char *path, char *fmt1, char *fmt2)
+ELFNAME(ldd)(int fd, char *path, const char *fmt1, const char *fmt2)
{
struct stat st;