Things my compiler didn't catch...

This commit is contained in:
Manuel Novoa III 2003-03-19 09:42:02 +00:00
parent cad5364599
commit 4eff18189a
3 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
int chgrp_main(int argc, char **argv)
{
long gid;
int recursiveFlag;;
int recursiveFlag;
int retval = EXIT_SUCCESS;
char *p;

View File

@ -59,7 +59,7 @@ extern int df_main(int argc, char **argv)
FILE *mount_table;
struct mntent *mount_entry;
struct statfs s;
static const char hdr_1k[] = "1k-blocks"; /* default display is kilobytes */;
static const char hdr_1k[] = "1k-blocks"; /* default display is kilobytes */
const char *disp_units_hdr = hdr_1k;
while ((opt = getopt(argc, argv, "k"

View File

@ -167,10 +167,10 @@ static const signed char od_o2si[] = {
int od_main(int argc, char **argv)
{
int ch;
bb_dump_vflag = FIRST;
bb_dump_length = -1;
int first = 1;
signed char *p;
bb_dump_vflag = FIRST;
bb_dump_length = -1;
while ((ch = getopt(argc, argv, od_opts)) > 0) {
if (((p = strchr(od_opts, ch)) != NULL) && (*p >= 0)) {