if (print_database)
{
char const *p = G_line;
- while (p < G_line + sizeof G_line)
+ while (p - G_line < sizeof G_line)
{
puts (p);
p += strlen (p) + 1;
parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION,
usage, AUTHORS, (char const *) NULL);
+
/* The above handles --help and --version.
Since there is no other invocation of getopt, handle `--' here. */
- if (argc > 1 && STREQ (argv[1], "--"))
+ unsigned int u_argc = argc;
+ if (1 < u_argc && STREQ (argv[1], "--"))
{
- --argc;
+ --u_argc;
++argv;
}
- if (argc <= 1)
+ if (u_argc <= 1)
{
error (0, 0, _("missing operand"));
usage (EXPR_INVALID);
mpz_t a;
mpz_t g;
mpz_t t1, t2;
- int k, l, c, i;
+ int k, l, c;
debug ("[pollard-rho (%d)] ", a_int);
mpz_set (x1, x);
k = l;
l = 2 * l;
+ unsigned int i;
for (i = 0; i < k; i++)
{
mpz_mul (x, x, x); mpz_add (x, x, a); mpz_mod (x, x, n);
print_files (n_files, file_names);
else
{
- int i;
+ unsigned int i;
for (i = 0; i < n_files; i++)
print_files (1, &file_names[i]);
}
{
/* A value distinct from any character that may have been stored in a
buffer as the result of a block-read in the function squeeze_filter. */
- enum { NOT_A_CHAR = CHAR_MAX + 1 };
+ const int NOT_A_CHAR = INT_MAX;
int char_to_squeeze = NOT_A_CHAR;
size_t i = 0;