]> granicus.if.org Git - cracklib/commitdiff
fix several CC warnings (taken from Debian)
authorJan Dittberner <jan@dittberner.info>
Sun, 15 Nov 2009 14:10:20 +0000 (14:10 +0000)
committerJan Dittberner <jan@dittberner.info>
Sun, 15 Nov 2009 14:10:20 +0000 (14:10 +0000)
git-svn-id: file:///tmp/cracklib-svn/trunk/cracklib@133 4175fe1e-86d5-4fdc-8e6a-506fab9d8533

NEWS
lib/packlib.c
lib/rules.c
lib/stringlib.c
util/packer.c

diff --git a/NEWS b/NEWS
index f766124afff02387c3758b5d76ca0df5b8725360..a358ee923f6e26471acf02936adf2e05a7d4f86c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ v2.8.14 Added russian translation (Anton Dobkin)
         Added Telugu translation (Krishna Babu)
         Updated polish translation (Piotr Drąg)
         optimize order of commands in util/cracklib-format (Jan Dittberner, Debian)
+        fix several CC warnings (Jan Dittberner, Debian)
 v2.8.13 Compressed dictionary support and better python module
 v2.8.11 Better create-cracklib-dict helper script (Mike Frysinger)
 v2.8.10 Patch for better hanlding of cracklist dictionary paths in python binding. (Nalin Dahyabhai)
index 29d7b14837bbdc1547b79af56c324ebec4a2ed1c..73f53ea35e21f97acbcc4c2cc3345cc7eacd0cb7 100644 (file)
@@ -15,7 +15,7 @@
 #endif
 #include "packer.h"
 
-static char vers_id[] = "packlib.c : v2.3p2 Alec Muffett 18 May 1993";
+static const char vers_id[] = "packlib.c : v2.3p2 Alec Muffett 18 May 1993";
 
 #define DEBUG 0
 
index 6b553801198f45d52a938b917eecbd1702f1a4e5..7091464cc383df57eb9d8345e6df67cffe90680a 100644 (file)
@@ -4,7 +4,7 @@
  * or its effect upon hardware or computer systems.
  */
 
-static char vers_id[] = "rules.c : v5.0p3 Alec Muffett 20 May 1993";
+static const char vers_id[] = "rules.c : v5.0p3 Alec Muffett 20 May 1993";
 
 #include "config.h"
 #include <string.h>
@@ -24,7 +24,7 @@ Debug(val, a, b, c, d, e, f, g)
     int val;
     char *a, *b, *c, *d, *e, *f, *g;
 {
-    fprintf(stderr, a, b, c, d, e, f);
+    fprintf(stderr, a, b, c, d, e, f, g);
 }
 #else
 static void
@@ -480,7 +480,7 @@ Mangle(input, control)              /* returns a pointer to a controlled Mangle */
                    Debug(1, "Mangle: '>' weird argument in '%s'\n", control);
                    return ((char *) 0);
                }
-               if (strlen(area) <= limit)
+               if ( (int) strlen(area) <= limit)
                {
                    return ((char *) 0);
                }
@@ -499,7 +499,7 @@ Mangle(input, control)              /* returns a pointer to a controlled Mangle */
                    Debug(1, "Mangle: '<' weird argument in '%s'\n", control);
                    return ((char *) 0);
                }
-               if (strlen(area) >= limit)
+               if ( (int) strlen(area) >= limit)
                {
                    return ((char *) 0);
                }
index 2be02b90fba5dd8817b9beba1c557522de3c6e76..0fc497bcc5793a974f84109a7cce0b3819ae13a6 100644 (file)
@@ -11,7 +11,7 @@
 #endif
 #include "packer.h"
 
-static char vers_id[] = "stringlib.c : v2.3p2 Alec Muffett 18 May 1993";
+static const char vers_id[] = "stringlib.c : v2.3p2 Alec Muffett 18 May 1993";
 
 char
 Chop(string)
index 2e75f5c36aa234d9a2ef6469d9d3348670c844a8..688b2470a1c4bbf9512634f570d0d9e49699b65c 100644 (file)
@@ -17,8 +17,8 @@ main(argc, argv)
     int argc;
     char *argv[];
 {
-    uint32_t readed;
-    uint32_t wrote;
+    unsigned long readed;
+    unsigned long wrote;
     PWDICT *pwp;
     char buffer[STRINGSIZE];
     char *file;