From owner-freebsd-bugs Wed Oct 2 21:30: 7 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9065737B401 for ; Wed, 2 Oct 2002 21:30:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB0E843E6E for ; Wed, 2 Oct 2002 21:30:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g934U4Co020238 for ; Wed, 2 Oct 2002 21:30:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g934U4kH020237; Wed, 2 Oct 2002 21:30:04 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEA7337B401 for ; Wed, 2 Oct 2002 21:28:55 -0700 (PDT) Received: from tomts19-srv.bellnexxia.net (tomts19.bellnexxia.net [209.226.175.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id E36BF43E75 for ; Wed, 2 Oct 2002 21:28:54 -0700 (PDT) (envelope-from matt@gsicomp.on.ca) Received: from xena.gsicomp.on.ca ([65.95.176.54]) by tomts19-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20021003042851.OGQJ6081.tomts19-srv.bellnexxia.net@xena.gsicomp.on.ca> for ; Thu, 3 Oct 2002 00:28:51 -0400 Received: from dhcp2.gsicomp.on.ca (dhcp2.gsicomp.on.ca [192.168.0.11]) by xena.gsicomp.on.ca (8.11.3/8.11.3) with ESMTP id g9338sp12430 for ; Wed, 2 Oct 2002 23:08:54 -0400 (EDT) (envelope-from matt@dhcp2.gsicomp.on.ca) Received: (from matt@localhost) by dhcp2.gsicomp.on.ca (8.12.6/8.12.6/Submit) id g934Sokk047282; Thu, 3 Oct 2002 00:28:50 -0400 (EDT) (envelope-from matt) Message-Id: <200210030428.g934Sokk047282@dhcp2.gsicomp.on.ca> Date: Thu, 3 Oct 2002 00:28:50 -0400 (EDT) From: Matt Emmerton Reply-To: Matt Emmerton To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/43616: static-ize some functions in sys/net/zlib.c Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 43616 >Category: kern >Synopsis: static-ize some functions in sys/net/zlib.c >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Oct 02 21:30:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Matt Emmerton >Release: FreeBSD 5.0-CURRENT i386 >Organization: GSI Computer Services >Environment: System: FreeBSD laptop.gsicomp.on.ca 5.0-CURRENT FreeBSD 5.0-CURRENT #5: Mon Sep 23 21:24:44 EDT 2002 root@laptop.gsicomp.on.ca:/usr/obj/usr/src/sys/LAPTOP.20020914.01 i386 >Description: PHK's JKH TODO List - kernel orphan symbol review This patch makes some symbols in net/zlib.c static as they don't need to be visible outside of this module. >How-To-Repeat: >Fix: --- sys/net/zlib.c.orig Wed Oct 2 23:39:58 2002 +++ sys/net/zlib.c Thu Oct 3 00:21:45 2002 @@ -528,14 +528,14 @@ */ /* in trees.c */ -void _tr_init OF((deflate_state *s)); -int _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc)); -ulg _tr_flush_block OF((deflate_state *s, charf *buf, ulg stored_len, +static void _tr_init OF((deflate_state *s)); +static int _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc)); +static ulg _tr_flush_block OF((deflate_state *s, charf *buf, ulg stored_len, int eof)); -void _tr_align OF((deflate_state *s)); -void _tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len, +static void _tr_align OF((deflate_state *s)); +static void _tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len, int eof)); -void _tr_stored_type_only OF((deflate_state *)); +static void _tr_stored_type_only OF((deflate_state *)); #endif /* --- deflate.h */ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message