From owner-freebsd-current Thu Nov 22 9:21:20 2001 Delivered-To: freebsd-current@freebsd.org Received: from freebsd.org.ru (sweet.etrust.ru [194.84.67.5]) by hub.freebsd.org (Postfix) with ESMTP id 4B3F037B405; Thu, 22 Nov 2001 09:21:10 -0800 (PST) Received: by freebsd.org.ru (Postfix, from userid 1000) id 7FE4B2C9; Thu, 22 Nov 2001 20:21:01 +0300 (MSK) Date: Thu, 22 Nov 2001 20:21:01 +0300 From: "Sergey A. Osokin" To: hackers@FreeBSD.org Cc: current@FreeBSD.org Subject: const char *tsptype[TSPTYPENUMBER] in "protocols/timed.h" ? Message-ID: <20011122202101.A5211@freebsd.org.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 /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 /usr/src/usr.sbin/timed/timedc/cmds.c:#include 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