From 03391991ffdff15bcd893081ea599885bed356f4 Mon Sep 17 00:00:00 2001 From: pate Date: Thu, 25 Apr 2002 14:50:16 +0000 Subject: [PATCH] adding prototypes, and fixing compiler warnings --- C4/Output.pm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/C4/Output.pm b/C4/Output.pm index 38212fa6a0..3783eb28a9 100644 --- a/C4/Output.pm +++ b/C4/Output.pm @@ -71,21 +71,21 @@ my $priv_func = sub { # make all your functions, whether exported or not; -sub startpage{ +sub startpage() { return("\n"); } -sub gotopage{ - my ($target) = @_; - print "
goto target = $target
"; +sub gotopage($) { + my ($target) = shift; + #print "
goto target = $target
"; my $string = ""; return $string; } -sub startmenu{ +sub startmenu($) { # edit the paths in here - my ($type)=@_; + my ($type)=shift; if ($type eq 'issue') { open (FILE,"$path/issues-top.inc") || die; } elsif ($type eq 'opac') { @@ -103,8 +103,8 @@ sub startmenu{ } my @string=; close FILE; - my $count=@string; - # $string[$count]="
"; + # my $count=@string; + # $string[$count]="
"; return @string; } @@ -131,7 +131,7 @@ sub endmenu{ return @string; } -sub mktablehdr { +sub mktablehdr() { return("\n"); } @@ -340,7 +340,7 @@ sub mkform2{ if ($reqd eq "R") { $ltext = $ltext." (Req)"; } - @order[$posn] =mktablerow(2,'white',$ltext,$text); + $order[$posn] =mktablerow(2,'white',$ltext,$text); } } $string=$string.join("\n",@order);