[LON-CAPA-cvs] cvs: loncom / lond
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 23 Jul 2004 16:14:20 -0000
albertel Fri Jul 23 12:14:20 2004 EDT
Modified files:
/loncom lond
Log:
- style enforcement
Index: loncom/lond
diff -u loncom/lond:1.210 loncom/lond:1.211
--- loncom/lond:1.210 Fri Jul 23 11:24:57 2004
+++ loncom/lond Fri Jul 23 12:14:19 2004
@@ -2,7 +2,7 @@
# The LearningOnline Network
# lond "LON Daemon" Server (port "LOND" 5663)
#
-# $Id: lond,v 1.210 2004/07/23 15:24:57 albertel Exp $
+# $Id: lond,v 1.211 2004/07/23 16:14:19 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -56,7 +56,7 @@
my $status='';
my $lastlog='';
-my $VERSION='$Revision: 1.210 $'; #' stupid emacs
+my $VERSION='$Revision: 1.211 $'; #' stupid emacs
my $remoteVERSION;
my $currenthostid;
my $currentdomainid;
@@ -969,7 +969,7 @@
my $resource_file = $domain_dir."/$namespace.db";
my %hash;
if(tie(%hash, 'GDBM_File', $resource_file, $how, 0640)) {
- if (scalar @_) { # Need to log the operation.
+ if (defined($loghead)) { # Need to log the operation.
my $logFh = IO::File->new(">>$domain_dir/$namespace.hist");
if($logFh) {
my $timestamp = time;
@@ -1016,7 +1016,7 @@
$how, 0640)) {
# If this is a namespace for which a history is kept,
# make the history log entry:
- if (($namespace =~/^nohist\_/) && (scalar @_ > 0)) {
+ if (($namespace =~/^nohist\_/) && (defined($loghead))) {
my $args = scalar @_;
Debug(" Opening history: $namespace $args");
my $hfh = IO::File->new(">>$proname/$namespace.hist");
@@ -1043,7 +1043,7 @@
# is defined as a 'line' of text. We remove the new line
# from the text line.
#
-sub GetRequest {
+sub get_request {
my $input = <$client>;
chomp($input);
@@ -1062,7 +1062,7 @@
# Implicit input:
# cipher - This global holds the negotiated encryption key.
#
-sub Decipher {
+sub decipher {
my ($input) = @_;
my $output = '';
@@ -1106,7 +1106,7 @@
# - On failure, the program will die as it's a bad internal bug to try to
# register a duplicate command handler.
#
-sub RegisterHandler {
+sub register_handler {
my ($request_name,
$procedure,
$must_encode,