Remove prototypes of subroutine.
authorHuang Hao <hao.h.huang@intel.com>
Mon, 24 Sep 2012 05:38:44 +0000 (13:38 +0800)
committerHuang Hao <hao.h.huang@intel.com>
Mon, 24 Sep 2012 05:39:15 +0000 (13:39 +0800)
Prototype of sub may lead to confusion and is not recommended.

depanneur

index e1a7709eb8eeb96639e622ca4ba1b0bf3db586ff..a2c2367a30384559615b608aef50c7d12aa7866f 100755 (executable)
--- a/depanneur
+++ b/depanneur
@@ -268,7 +268,7 @@ my $cache_path = "$build_root/local/sources/$dist/cache";
 my $scratch_dir = "$build_root/local/scratch.$arch";
 
 
-sub mkdir_p($) {
+sub mkdir_p {
     my $path = shift;
     my $err_msg;
     # attempt a 'mkdir -p' on the provided path and catch any errors returned
@@ -341,7 +341,7 @@ sub obs_wanted {
     /^.*\.spec\z/s && fill_packs_from_obs($name);
 }
 
-sub fill_packs_from_obs() {
+sub fill_packs_from_obs {
     my $name = shift;
     $name =~ m/\.osc/ || push(@packs, $name);
 }
@@ -696,7 +696,7 @@ sub source_of {
     return undef;
 }
 
-sub update_pkgdeps()
+sub update_pkgdeps
 {
     @tmp_expansion_errors = ();
     foreach my $name (keys %to_build) {