cvs-cvs
[Top][All Lists]
Advanced

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

[Cvs-cvs] ccvs/src ChangeLog main.c [cvs1-11-x-branch]


From: Mark D. Baushke
Subject: [Cvs-cvs] ccvs/src ChangeLog main.c [cvs1-11-x-branch]
Date: Fri, 24 Feb 2006 18:31:35 +0000

CVSROOT:        /cvsroot/cvs
Module name:    ccvs
Branch:         cvs1-11-x-branch
Changes by:     Mark D. Baushke <address@hidden>        06/02/24 18:31:35

Modified files:
        src            : ChangeLog main.c 

Log message:
        * main.c (main): Validate the gzip compression level for
        --disable-client configurations.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/cvs/ccvs/src/ChangeLog.diff?only_with_tag=cvs1-11-x-branch&tr1=1.2336.2.422&tr2=1.2336.2.423&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/cvs/ccvs/src/main.c.diff?only_with_tag=cvs1-11-x-branch&tr1=1.172.4.17&tr2=1.172.4.18&r1=text&r2=text

Patches:
Index: ccvs/src/ChangeLog
diff -u ccvs/src/ChangeLog:1.2336.2.422 ccvs/src/ChangeLog:1.2336.2.423
--- ccvs/src/ChangeLog:1.2336.2.422     Mon Feb 13 22:36:46 2006
+++ ccvs/src/ChangeLog  Fri Feb 24 18:31:35 2006
@@ -1,3 +1,8 @@
+2006-02-24  Mark D. Baushke  <address@hidden>
+
+       * main.c (main): Validate the gzip compression level for
+       --disable-client configurations.
+
 2006-02-13  Derek Price  <address@hidden>
 
        * server.c (do_cvs_command): Skip server_cleanup in the child process.
Index: ccvs/src/main.c
diff -u ccvs/src/main.c:1.172.4.17 ccvs/src/main.c:1.172.4.18
--- ccvs/src/main.c:1.172.4.17  Thu Feb  2 13:08:36 2006
+++ ccvs/src/main.c     Fri Feb 24 18:31:35 2006
@@ -583,12 +583,15 @@
                use_cvsrc = 0; /* unnecessary, since we've done it above */
                break;
            case 'z':
-#ifdef CLIENT_SUPPORT
-               gzip_level = strtol (optarg, &end, 10);
-               if (*end != '\0' || gzip_level < 0 || gzip_level > 9)
-                 error (1, 0,
-                        "gzip compression level must be between 0 and 9");
+               {
+#ifndef CLIENT_SUPPORT
+                   int gzip_level;
 #endif /* CLIENT_SUPPORT */
+                   gzip_level = strtol (optarg, &end, 10);
+                   if (*end != '\0' || gzip_level < 0 || gzip_level > 9)
+                     error (1, 0,
+                            "gzip compression level must be between 0 and 9");
+               }
                /* If no CLIENT_SUPPORT, we just silently ignore the gzip
                 * level, so that users can have it in their .cvsrc and not
                 * cause any trouble.




reply via email to

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