Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ldd Sprinkle a little const. no object diffs
details: https://anonhg.NetBSD.org/src/rev/f786ff694b90
branches: trunk
changeset: 747246:f786ff694b90
user: dholland <dholland%NetBSD.org@localhost>
date: Mon Sep 07 04:49:03 2009 +0000
description:
Sprinkle a little const. no object diffs
diffstat:
usr.bin/ldd/ldd.h | 6 +++---
usr.bin/ldd/ldd_elfxx.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (49 lines):
diff -r c01ee76fb0b5 -r f786ff694b90 usr.bin/ldd/ldd.h
--- a/usr.bin/ldd/ldd.h Mon Sep 07 04:23:29 2009 +0000
+++ b/usr.bin/ldd/ldd.h Mon Sep 07 04:49:03 2009 +0000
@@ -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
diff -r c01ee76fb0b5 -r f786ff694b90 usr.bin/ldd/ldd_elfxx.c
--- a/usr.bin/ldd/ldd_elfxx.c Mon Sep 07 04:23:29 2009 +0000
+++ b/usr.bin/ldd/ldd_elfxx.c Mon Sep 07 04:49:03 2009 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index