summaryrefslogtreecommitdiff
path: root/usr/src/cmd/sgs/libelf/common/strptr.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/sgs/libelf/common/strptr.c')
-rw-r--r--usr/src/cmd/sgs/libelf/common/strptr.c25
1 files changed, 10 insertions, 15 deletions
diff --git a/usr/src/cmd/sgs/libelf/common/strptr.c b/usr/src/cmd/sgs/libelf/common/strptr.c
index 3242415352..05b00a17dc 100644
--- a/usr/src/cmd/sgs/libelf/common/strptr.c
+++ b/usr/src/cmd/sgs/libelf/common/strptr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,17 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright (c) 1998 by Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.6 */
-
-#pragma weak elf_strptr = _elf_strptr
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "syn.h"
#include "libelf.h"
#include "decl.h"
#include "msg.h"
@@ -42,9 +37,9 @@
char *
elf_strptr(Elf * elf, size_t ndx, size_t off)
{
- Elf_Scn * s;
- Elf_Data * d;
- char * rc;
+ Elf_Scn *s;
+ Elf_Data *d;
+ char *rc;
if (elf == 0)
return (0);