aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ypwhich/ypwhich.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-04-21 16:50:32 +0000
committerBruce Evans <bde@FreeBSD.org>1995-04-21 16:50:32 +0000
commit8da0f3b87aa5be5e617b0cd9c9f6960bdc468a4c (patch)
tree36b2f277d1206ee8653c277d6565422770336261 /usr.bin/ypwhich/ypwhich.c
parent34951155ae15f74c6ffa7dee16a8d56cdcf93efe (diff)
downloadsrc-8da0f3b87aa5be5e617b0cd9c9f6960bdc468a4c.tar.gz
src-8da0f3b87aa5be5e617b0cd9c9f6960bdc468a4c.zip
Make some functions static like they always should have been.
Change the interfaces of these functions to save space. The code that takes the least amount of space is often the opposite to what you might expect. E.g., it helps to waste a few bytes passing pointers so that the compiler can't see that certain addresses are identical (gcc likes to waste space by reloading fat constants even when the constant is already in a register). Rewrite getbootdev() to save 80 bytes of space and to make it less ugly. 32 bytes were saved simply by omitting the continue statements in the pseudo-switch.
Notes
Notes: svn path=/head/; revision=7981
Diffstat (limited to 'usr.bin/ypwhich/ypwhich.c')
0 files changed, 0 insertions, 0 deletions