1 --- src/id.c 2008-03-04 18:50:55.000000000 +0100
2 +++ src/id.c 2008-03-04 19:32:24.000000000 +0100
3 @@ -196,6 +196,7 @@ of a different user"));
4 error (EXIT_FAILURE, 0,
5 _("cannot print only names or real IDs in default format"));
9 if (argc - optind == 1)
11 @@ -239,6 +240,7 @@ of a different user"));
13 print_full_info (user_name);
18 exit (ok ? EXIT_SUCCESS : EXIT_FAILURE);
19 diff -upr src/remove.c src/remove.c
20 --- src/remove.c 2007-07-23 12:56:20.000000000 +0200
21 +++ src/remove.c 2007-07-23 13:03:12.000000000 +0200
22 @@ -264,9 +264,10 @@ pop_dir (Dirstack_state *ds)
24 size_t n_lengths = obstack_object_size (&ds->len_stack) / sizeof (size_t);
25 size_t *length = obstack_base (&ds->len_stack);
28 assert (n_lengths > 0);
29 - size_t top_len = length[n_lengths - 1];
30 + top_len = length[n_lengths - 1];
31 assert (top_len >= 2);
33 /* Pop the specified length of file name. */
34 @@ -424,10 +425,11 @@ AD_stack_top (Dirstack_state const *ds)
36 AD_stack_pop (Dirstack_state *ds)
39 assert (0 < AD_stack_height (ds));
41 /* operate on Active_dir. pop and free top entry */
42 - struct AD_ent *top = AD_stack_top (ds);
43 + top = AD_stack_top (ds);
45 hash_free (top->unremovable);
46 obstack_blank (&ds->Active_dir, -(int) sizeof (struct AD_ent));
47 @@ -836,14 +838,13 @@ prompt (int fd_cwd, Dirstack_state const
49 int write_protected = 0;
50 int dirent_type = *pdirent_type;
53 *is_empty = T_UNKNOWN;
55 if (x->interactive == RMI_NEVER)
60 if (!x->ignore_missing_files
61 && ((x->interactive == RMI_ALWAYS) || x->stdin_tty)
62 && dirent_type != DT_LNK)
63 @@ -891,6 +892,7 @@ prompt (int fd_cwd, Dirstack_state const
68 char const *quoted_name = quote (full_filename (filename));
70 if (write_protected < 0)
71 @@ -930,6 +932,7 @@ prompt (int fd_cwd, Dirstack_state const
72 : _("%s: remove %s %s? ")),
73 program_name, file_type (sbuf), quoted_name);
78 return RM_USER_DECLINED;
79 @@ -1549,6 +1552,7 @@ rm_1 (Dirstack_state *ds, char const *fi
85 cache_stat_init (&st);
86 cycle_check_init (&ds->cycle_check_state);
87 @@ -1571,6 +1575,7 @@ rm_1 (Dirstack_state *ds, char const *fi
89 AD_INIT_OTHER_MEMBERS ();
92 enum RM_status status = remove_entry (AT_FDCWD, ds, filename,
94 if (status == RM_NONEMPTY_DIR)
95 @@ -1589,6 +1594,8 @@ rm_1 (Dirstack_state *ds, char const *fi
102 /* Remove all files and/or directories specified by N_FILES and FILE.
103 Apply the options in X. */
104 diff -upr src/rm.c src/rm.c
105 --- src/rm.c 2007-07-23 12:56:20.000000000 +0200
106 +++ src/rm.c 2007-07-23 13:03:12.000000000 +0200
107 @@ -354,6 +354,7 @@ main (int argc, char **argv)
112 size_t n_files = argc - optind;
113 char const *const *file = (char const *const *) argv + optind;
115 @@ -367,7 +368,10 @@ main (int argc, char **argv)
120 enum RM_status status = rm (n_files, file, &x);
121 assert (VALID_STATUS (status));
122 exit (status == RM_ERROR ? EXIT_FAILURE : EXIT_SUCCESS);
126 diff -upr src/seq.c src/seq.c
127 --- src/seq.c 2007-07-23 12:56:20.000000000 +0200
128 +++ src/seq.c 2007-07-23 13:03:12.000000000 +0200
129 @@ -164,6 +164,7 @@ scan_arg (const char *arg)
130 : (decimal_point == arg /* .# -> 0.# */
131 || ! ISDIGIT (decimal_point[-1]))); /* -.# -> 0.# */
134 char const *e = strchr (arg, 'e');
136 e = strchr (arg, 'E');
137 @@ -172,6 +173,7 @@ scan_arg (const char *arg)
138 long exponent = strtol (e + 1, NULL, 10);
139 ret.precision += exponent < 0 ? -exponent : 0;
145 @@ -339,6 +341,7 @@ get_default_format (operand first, opera
146 size_t last_width = last.width + (prec - last.precision);
147 if (last.precision && prec == 0)
148 last_width--; /* don't include space for '.' */
150 size_t width = MAX (first_width, last_width);
151 if (width <= INT_MAX)
153 @@ -346,6 +349,7 @@ get_default_format (operand first, opera
154 sprintf (format_buf, "%%0%d.%dLf", w, prec);
161 @@ -434,6 +438,7 @@ main (int argc, char **argv)
164 validate_format (format_str);
166 char const *f = long_double_format (format_str, &layout);
169 @@ -441,6 +446,7 @@ main (int argc, char **argv)
170 usage (EXIT_FAILURE);
176 last = scan_arg (argv[optind++]);
177 diff -upr src/shred.c src/shred.c
178 --- src/shred.c 2007-07-23 12:56:20.000000000 +0200
179 +++ src/shred.c 2007-07-23 13:03:12.000000000 +0200
180 @@ -461,7 +461,7 @@ dopass (int fd, char const *qname, off_t
181 out. Thus, it shouldn't give up on bad blocks. This
182 code works because lim is always a multiple of
183 SECTOR_SIZE, except at the end. */
184 - verify (sizeof r % SECTOR_SIZE == 0);
185 + { verify (sizeof r % SECTOR_SIZE == 0); }
186 if (errnum == EIO && 0 <= size && (soff | SECTOR_MASK) < lim)
188 size_t soff1 = (soff | SECTOR_MASK) + 1;