commit-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Inetutils branch, master, updated. inetutils-1_8-33-g40d447c


From: Simon Josefsson
Subject: [SCM] GNU Inetutils branch, master, updated. inetutils-1_8-33-g40d447c
Date: Sat, 11 Sep 2010 20:12:08 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".

The branch, master has been updated
       via  40d447ca9b54a7f843b0e4a66da55e989593f6ad (commit)
      from  fb6601063862f1dd47616c1110020bd4d06fab35 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=40d447ca9b54a7f843b0e4a66da55e989593f6ad


commit 40d447ca9b54a7f843b0e4a66da55e989593f6ad
Author: Mats Erik Andersson <address@hidden>
Date:   Thu Sep 9 19:00:07 2010 +0200

    src/tftp.c: Remove external scopes, making them static.
    
    Signed-off-by: Simon Josefsson <address@hidden>

diff --git a/ChangeLog b/ChangeLog
index 2a6af30..7f3efb3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-09-09  Mats Erik Andersson <address@hidden>
+
+       * src/tftp.c (peeraddr, f, trace, verbose, rexmtval)
+       (maxtimeout): Remove external scope.
+       (peeraddr, f, port, trace, verbose, connected): Upgrade
+       to static scope in file.
+       (rexmtval, maxtimeout): Static scope and new positioning.
+
 2010-09-03  Simon Josefsson  <address@hidden>
 
        * doc/inetutils.texi (telnetd invocation): Use two spaces after
diff --git a/src/tftp.c b/src/tftp.c
index ec46039..6515976 100644
--- a/src/tftp.c
+++ b/src/tftp.c
@@ -79,13 +79,6 @@
 #include "progname.h"
 #include "tftpsubs.h"
 
-extern struct sockaddr_in peeraddr;    /* filled in by main */
-extern int f;                  /* the opened socket */
-extern int trace;
-extern int verbose;
-extern int rexmtval;
-extern int maxtimeout;
-
 #define PKTSIZE    SEGSIZE+4
 char ackbuf[PKTSIZE];
 int timeout;
@@ -101,12 +94,16 @@ static void tpacket (const char *, struct tftphdr *, int);
 
 #define TIMEOUT                5       /* secs between rexmt's */
 
-struct sockaddr_in peeraddr;
-int f;
-short port;
-int trace;
-int verbose;
-int connected;
+static int rexmtval = TIMEOUT;
+static int maxtimeout = 5 * TIMEOUT;
+
+static struct sockaddr_in peeraddr;    /* filled in by main */
+static int f;                  /* the opened socket */
+static short port;
+static int trace;
+static int verbose;
+static int connected;
+
 char mode[32];
 char line[200];
 int margc;
@@ -597,8 +594,6 @@ getusage (char *s)
   printf ("       %s file file ... file if connected\n", s);
 }
 
-int rexmtval = TIMEOUT;
-
 void
 setrexmt (int argc, char *argv[])
 {
@@ -619,8 +614,6 @@ setrexmt (int argc, char *argv[])
     rexmtval = t;
 }
 
-int maxtimeout = 5 * TIMEOUT;
-
 void
 settimeout (int argc, char *argv[])
 {

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog  |    8 ++++++++
 src/tftp.c |   27 ++++++++++-----------------
 2 files changed, 18 insertions(+), 17 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]