From 3e5de5d019b8b1edc6c40c035fa29f3a41341841 Mon Sep 17 00:00:00 2001 From: Eric Sproul Date: Tue, 28 Apr 2015 11:29:42 -0400 Subject: 5863 psiginfo arguments should be const Reviewed by: Andy Stormont Reviewed by: Garrett D'Amore Reviewed by: Dan McDonald Approved by: Garrett D'Amore --- usr/src/lib/libc/port/gen/psiginfo.c | 7 ++++--- usr/src/lib/libc/port/llib-lc | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'usr/src/lib/libc') diff --git a/usr/src/lib/libc/port/gen/psiginfo.c b/usr/src/lib/libc/port/gen/psiginfo.c index 1675db36ee..a648c81094 100644 --- a/usr/src/lib/libc/port/gen/psiginfo.c +++ b/usr/src/lib/libc/port/gen/psiginfo.c @@ -18,6 +18,9 @@ * * CDDL HEADER END */ +/* + * Copyright 2015 Circonus, Inc. All rights reserved. + */ /* * Copyright 2008 Sun Microsystems, Inc. All rights reserved. @@ -27,8 +30,6 @@ /* Copyright (c) 1988 AT&T */ /* All Rights Reserved */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * Print the name of the siginfo indicated by "sig", along with the * supplied message @@ -46,7 +47,7 @@ #define strsignal(i) (_libc_gettext(_sys_siglistp[i])) void -psiginfo(siginfo_t *sip, char *s) +psiginfo(const siginfo_t *sip, const char *s) { char buf[256]; char *c; diff --git a/usr/src/lib/libc/port/llib-lc b/usr/src/lib/libc/port/llib-lc index 9f493e21d4..9fb5935f7c 100644 --- a/usr/src/lib/libc/port/llib-lc +++ b/usr/src/lib/libc/port/llib-lc @@ -25,6 +25,7 @@ * Copyright 2013 OmniTI Computer Consulting, Inc. All rights reserved. * Copyright (c) 2013 Gary Mills * Copyright 2014 Garrett D'Amore + * Copyright 2015 Circonus, Inc. All rights reserved. */ /* LINTLIBRARY */ @@ -760,7 +761,7 @@ void perror(const char *s); int pipe(int *fds); /* psiginfo.c */ -void psiginfo(siginfo_t *sip, char *s); +void psiginfo(const siginfo_t *sip, const char *s); /* psignal.c */ void psignal(int sig, const char *s); -- cgit v1.2.3