Skip to content

Commit

Permalink
remove POSIX dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoshiro committed Feb 2, 2007
1 parent 7bf0187 commit fdc917b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/genconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use strict;
#use serialize;
use IO::File;
use POSIX;
use Data::Dumper;

my $CFILE = $ENV{'HOME'} . '/.bip/bip.conf.autogen';
Expand Down Expand Up @@ -452,9 +451,9 @@ authorityKeyIdentifier=keyid:always";

sub writeConfig {
my ($f) = @_;
my ($fh, $ts);
my ($fh, $ts, @t);

$ts = POSIX::strftime('%a, %d %b %Y %H:%M:%S %z', localtime(time));
$ts = localtime(time));
$fh = new IO::File;
$fh->open('> ' . $f) || return "Unable to open $f for writing";
print $fh "# vim:ft=bip:ts=2\n";
Expand Down

0 comments on commit fdc917b

Please sign in to comment.