1 --- src/remove.c 2007-07-23 12:56:20.000000000 +0200
2 +++ src/remove.c 2007-07-23 13:03:12.000000000 +0200
3 @@ -264,9 +264,10 @@ pop_dir (Dirstack_state *ds)
5 size_t n_lengths = obstack_object_size (&ds->len_stack) / sizeof (size_t);
6 size_t *length = obstack_base (&ds->len_stack);
9 assert (n_lengths > 0);
10 - size_t top_len = length[n_lengths - 1];
11 + top_len = length[n_lengths - 1];
12 assert (top_len >= 2);
14 /* Pop the specified length of file name. */
15 @@ -424,10 +425,11 @@ AD_stack_top (Dirstack_state const *ds)
17 AD_stack_pop (Dirstack_state *ds)
20 assert (0 < AD_stack_height (ds));
22 /* operate on Active_dir. pop and free top entry */
23 - struct AD_ent *top = AD_stack_top (ds);
24 + top = AD_stack_top (ds);
26 hash_free (top->unremovable);
27 obstack_blank (&ds->Active_dir, -(int) sizeof (struct AD_ent));
28 @@ -836,14 +838,13 @@ prompt (int fd_cwd, Dirstack_state const
30 int write_protected = 0;
31 int dirent_type = *pdirent_type;
34 *is_empty = T_UNKNOWN;
36 if (x->interactive == RMI_NEVER)
41 if (!x->ignore_missing_files
42 && ((x->interactive == RMI_ALWAYS) || x->stdin_tty)
43 && dirent_type != DT_LNK)
44 @@ -891,6 +892,7 @@ prompt (int fd_cwd, Dirstack_state const
49 char const *quoted_name = quote (full_filename (filename));
51 if (write_protected < 0)
52 @@ -930,6 +932,7 @@ prompt (int fd_cwd, Dirstack_state const
53 : _("%s: remove %s %s? ")),
54 program_name, file_type (sbuf), quoted_name);
59 return RM_USER_DECLINED;
60 @@ -1549,6 +1552,7 @@ rm_1 (Dirstack_state *ds, char const *fi
66 cache_stat_init (&st);
67 cycle_check_init (&ds->cycle_check_state);
68 @@ -1571,6 +1575,7 @@ rm_1 (Dirstack_state *ds, char const *fi
70 AD_INIT_OTHER_MEMBERS ();
73 enum RM_status status = remove_entry (AT_FDCWD, ds, filename,
75 if (status == RM_NONEMPTY_DIR)
76 @@ -1589,6 +1594,8 @@ rm_1 (Dirstack_state *ds, char const *fi
83 /* Remove all files and/or directories specified by N_FILES and FILE.
84 Apply the options in X. */
85 diff -upr src/rm.c src/rm.c
86 --- src/rm.c 2007-07-23 12:56:20.000000000 +0200
87 +++ src/rm.c 2007-07-23 13:03:12.000000000 +0200
88 @@ -354,6 +354,7 @@ main (int argc, char **argv)
93 size_t n_files = argc - optind;
94 char const *const *file = (char const *const *) argv + optind;
96 @@ -367,7 +368,10 @@ main (int argc, char **argv)
101 enum RM_status status = rm (n_files, file, &x);
102 assert (VALID_STATUS (status));
103 exit (status == RM_ERROR ? EXIT_FAILURE : EXIT_SUCCESS);
107 diff -upr src/seq.c src/seq.c
108 --- src/seq.c 2008-04-14 11:17:15.000000000 +0200
109 +++ src/seq.c 2008-04-14 11:26:57.000000000 +0200
110 @@ -166,6 +166,7 @@ scan_arg (const char *arg)
111 : (decimal_point == arg /* .# -> 0.# */
112 || ! ISDIGIT (decimal_point[-1]))); /* -.# -> 0.# */
115 char const *e = strchr (arg, 'e');
117 e = strchr (arg, 'E');
118 @@ -174,6 +175,7 @@ scan_arg (const char *arg)
119 long exponent = strtol (e + 1, NULL, 10);
120 ret.precision += exponent < 0 ? -exponent : 0;
126 @@ -349,6 +351,7 @@ get_default_format (operand first, opera
127 size_t last_width = last.width + (prec - last.precision);
128 if (last.precision && prec == 0)
129 last_width--; /* don't include space for '.' */
131 size_t width = MAX (first_width, last_width);
132 if (width <= INT_MAX)
134 @@ -356,6 +359,7 @@ get_default_format (operand first, opera
135 sprintf (format_buf, "%%0%d.%dLf", w, prec);
142 @@ -444,6 +448,7 @@ main (int argc, char **argv)
145 validate_format (format_str);
147 char const *f = long_double_format (format_str, &layout);
150 @@ -451,6 +456,7 @@ main (int argc, char **argv)
151 usage (EXIT_FAILURE);
157 last = scan_arg (argv[optind++]);
158 diff -upr src/shred.c src/shred.c
159 --- src/shred.c 2007-07-23 12:56:20.000000000 +0200
160 +++ src/shred.c 2007-07-23 13:03:12.000000000 +0200
161 @@ -461,7 +461,7 @@ dopass (int fd, char const *qname, off_t
162 out. Thus, it shouldn't give up on bad blocks. This
163 code works because lim is always a multiple of
164 SECTOR_SIZE, except at the end. */
165 - verify (sizeof r % SECTOR_SIZE == 0);
166 + { verify (sizeof r % SECTOR_SIZE == 0); }
167 if (errnum == EIO && 0 <= size && (soff | SECTOR_MASK) < lim)
169 size_t soff1 = (soff | SECTOR_MASK) + 1;