Date: Thu, 3 Oct 2002 00:28:50 -0400 (EDT) From: Matt Emmerton <matt@gsicomp.on.ca> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/43616: static-ize some functions in sys/net/zlib.c Message-ID: <200210030428.g934Sokk047282@dhcp2.gsicomp.on.ca>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210030428.g934Sokk047282>