Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Nov 2001 20:21:01 +0300
From:      "Sergey A. Osokin" <osa@freebsd.org.ru>
To:        hackers@FreeBSD.org
Cc:        current@FreeBSD.org
Subject:   const char *tsptype[TSPTYPENUMBER] in "protocols/timed.h" ?
Message-ID:  <20011122202101.A5211@freebsd.org.ru>

next in thread | raw e-mail | index | archive | help
Hello, hackers.

What do you think about change the type of tsptype in
src/include/protocols/timed.h from (char *)
to (const char *) ?

$ grep -r protocols/timed.h /usr/src
/usr/src/bin/date/netdate.c:#include <protocols/timed.h>
<skip recursive directory loops>
/usr/src/usr.sbin/timed/timed/byteorder.c: * messages. Protocol is defined in /usr/include/protocols/timed.h
/usr/src/usr.sbin/timed/timed/globals.h:#include <protocols/timed.h>
/usr/src/usr.sbin/timed/timedc/cmds.c:#include <protocols/timed.h>

After change of tsptype's type, we can build bin/date (with
some cosmetics) with WARNS?=2.

-- 

Rgdz,                                /"\ 
Sergey Osokin aka oZZ,               \ /  ASCII RIBBON CAMPAIGN
osa@freebsd.org.ru                    X     AGAINST HTML MAIL
http://freebsd.org.ru/~osa/          / \

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011122202101.A5211>