]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid some gcc warnings.
authorBruno Haible <bruno@clisp.org>
Mon, 21 Jan 2002 13:19:49 +0000 (13:19 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 23:03:45 +0000 (01:03 +0200)
src/ChangeLog
src/open-po.c
src/read-mo.c
src/x-java.l

index f849925235773c65198a11498269902f0f1315f5..d370b1baaff0414fe434959a46f3d79cdf36c600 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-19  Bruno Haible  <bruno@clisp.org>
+
+       * open-po.c (open_po_file): Use 'size_t' instead of 'int'.
+       * x-java.l (translate_esc): Likewise.
+       * read-mo.c (read_mo_file): Use 'unsigned int' instead of 'int'.
+
 2002-01-13  Bruno Haible  <bruno@clisp.org>
 
        * msgl-iconv.c (iconv_message_list): Don't complain by a nonportable
index 8d2e10d9d2c0a24bfdc7c33622100adaa7ffa041..5f3fbaa94e11e4e497282f0009a08d25db79eff5 100644 (file)
@@ -1,5 +1,5 @@
 /* open-po - search for .po file along search path list and open for reading
-   Copyright (C) 1995-1996, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1995-1996, 2000-2002 Free Software Foundation, Inc.
    Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, April 1995.
 
 This program is free software; you can redistribute it and/or modify
@@ -51,7 +51,8 @@ open_po_file (input_name, real_file_name_p)
   static const char *extension[] = { "", ".po", ".pot", };
   char *file_name;
   FILE *ret_val;
-  int j, k;
+  int j;
+  size_t k;
   const char *dir;
 
   if (strcmp (input_name, "-") == 0 || strcmp (input_name, "/dev/stdin") == 0)
index dffe573a18a624359a81cb39eebc51ca9909699e..590f1856577d00976584e7ca5e5d36e6c5793ea5 100644 (file)
@@ -1,5 +1,5 @@
 /* Reading binary .mo files.
-   Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
    Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, April 1995.
 
    This program is free software; you can redistribute it and/or modify
@@ -156,7 +156,7 @@ read_mo_file (mlp, fn)
 {
   FILE *fp;
   struct mo_file_header header;
-  int j;
+  unsigned int j;
 
   if (strcmp (fn, "-") == 0 || strcmp (fn, "/dev/stdin") == 0)
     {
index 6e6bd998e2d57034595fc0f49b82e49cd8dc4a19..18d1caf0b451c196f22dcd318c7729e1ba58e1e6 100644 (file)
@@ -275,8 +275,8 @@ translate_esc (s)
      char *s;
 {
   char *n = (char *) xmalloc (strlen (s) + 1);
-  int i;
-  int j = 0;
+  size_t i;
+  size_t j = 0;
 
   for (i = 0; i < strlen (s); i++)
     switch (s[i])