From b7d62af5b42f0da2eb668e8d33d24d2f4fdd98a8 Mon Sep 17 00:00:00 2001 From: ceastha Date: Thu, 18 Aug 2005 15:40:59 -0700 Subject: 6268906 ucbcmd/plot and gcc don't get along 6271073 gcc and cmd/fmt don't get along 6271996 gcc and cmd/mail don't get along 6272084 gcc and cmd/pax don't get along 6273914 gcc and cmd/tar don't get along --HG-- rename : usr/src/cmd/fmt/head.c => deleted_files/usr/src/cmd/fmt/head.c rename : usr/src/cmd/mail/maid.c => deleted_files/usr/src/cmd/mail/maid.c --- usr/src/cmd/mail/getcomment.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'usr/src/cmd/mail/getcomment.c') diff --git a/usr/src/cmd/mail/getcomment.c b/usr/src/cmd/mail/getcomment.c index ff258f31e9..ac8674c066 100644 --- a/usr/src/cmd/mail/getcomment.c +++ b/usr/src/cmd/mail/getcomment.c @@ -19,12 +19,17 @@ * * CDDL HEADER END */ +/* + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ #pragma ident "%Z%%M% %I% %E% SMI" - /* SVr4.0 2. */ + #include "mail.h" /* * Get comment field, if any, from line. @@ -33,12 +38,12 @@ * -1 ==> no closing (terminating) paren found for comment. */ -getcomment(s, q) -register char *s; -register char *q; /* Copy comment, if found, to here */ +int +getcomment(char *s, char *q) + /* Copy comment, if found, to q */ { - register char *p, *sav_q; - register int depth = 0; + char *p, *sav_q; + int depth = 0; if ((p = strchr(s, '(')) == (char *)NULL) { /* no comment found */ -- cgit v1.2.3