From 26def3fd2c20cdb0c85fc721325c1b954d7bbc05 Mon Sep 17 00:00:00 2001 From: Juergen Beisert Date: Tue, 16 Oct 2007 19:07:21 +0200 Subject: various small typos fixed --- commands/crc.c | 22 ++++++++++++++++++++++ commands/flash.c | 5 ++--- commands/go.c | 6 ++---- commands/ls.c | 1 + commands/memtest.c | 2 ++ commands/net.c | 11 +++++------ commands/pwd.c | 2 +- commands/timeout.c | 2 +- 8 files changed, 36 insertions(+), 15 deletions(-) diff --git a/commands/crc.c b/commands/crc.c index 69633ce594..f5a8e3bf3d 100644 --- a/commands/crc.c +++ b/commands/crc.c @@ -1,3 +1,25 @@ +/* + * crc.c - Calculate a crc32 checksum of a memory area + * + * Copyright (c) 2007 Sascha Hauer , Pengutronix + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #include #include #include diff --git a/commands/flash.c b/commands/flash.c index 7d7876d862..835663c2b6 100644 --- a/commands/flash.c +++ b/commands/flash.c @@ -1,4 +1,6 @@ /* + * erase, protect, unprotect - FLASH support + * * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * @@ -21,9 +23,6 @@ * MA 02111-1307 USA */ -/* - * FLASH support - */ #include #include #include diff --git a/commands/go.c b/commands/go.c index f6d8fcd135..a1fd2f087f 100644 --- a/commands/go.c +++ b/commands/go.c @@ -1,4 +1,6 @@ /* + * go- execute some code anywhere (misc boot support) + * * (C) Copyright 2000-2003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * @@ -21,10 +23,6 @@ * MA 02111-1307 USA */ -/* - * Misc boot support - */ - #include #include diff --git a/commands/ls.c b/commands/ls.c index 82592641b7..6b88688426 100644 --- a/commands/ls.c +++ b/commands/ls.c @@ -19,6 +19,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + #include #include #include diff --git a/commands/memtest.c b/commands/memtest.c index 88d8aa356a..2c0dd3c7e0 100644 --- a/commands/memtest.c +++ b/commands/memtest.c @@ -1,4 +1,6 @@ /* + * mtest - Perform a memory test + * * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * diff --git a/commands/net.c b/commands/net.c index 8fb100a959..d12559e13f 100644 --- a/commands/net.c +++ b/commands/net.c @@ -1,4 +1,6 @@ /* + * tftp, rarpboot, dhcp, nfs, cdp - Boot support + * * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * @@ -21,9 +23,6 @@ * MA 02111-1307 USA */ -/* - * Boot support - */ #include #include #include @@ -132,7 +131,7 @@ static int do_dhcp (cmd_tbl_t *cmdtp, int argc, char *argv[]) } U_BOOT_CMD_START(dhcp) - .maxargs = 3, + .maxargs = 1, .cmd = do_dhcp, .usage = "invoke dhcp client to obtain ip/boot params", U_BOOT_CMD_END @@ -201,7 +200,7 @@ netboot_common (proto_t proto, cmd_tbl_t *cmdtp, int argc, char *argv[]) return rcode; } -#if (CONFIG_COMMANDS & CFG_CMD_CDP) +#ifdef CONFIG_NET_CDP static void cdp_update_env(void) { @@ -245,4 +244,4 @@ U_BOOT_CMD_START(cdp) U_BOOT_CMD_HELP("[loadAddress] [host ip addr:bootfilename]\n") U_BOOT_CMD_END -#endif /* CFG_CMD_CDP */ +#endif /* CONFIG_NET_CDP */ diff --git a/commands/pwd.c b/commands/pwd.c index 537d54d2a5..7034585c78 100644 --- a/commands/pwd.c +++ b/commands/pwd.c @@ -30,7 +30,7 @@ static int do_pwd (cmd_tbl_t *cmdtp, int argc, char *argv[]) } U_BOOT_CMD_START(pwd) - .maxargs = 2, + .maxargs = 1, .cmd = do_pwd, .usage = "print working directory", U_BOOT_CMD_END diff --git a/commands/timeout.c b/commands/timeout.c index aae0f73342..639f361da1 100644 --- a/commands/timeout.c +++ b/commands/timeout.c @@ -1,5 +1,5 @@ /* - * ls.c - list files and directories + * timeout - wait for timeout * * Copyright (c) 2007 Sascha Hauer , Pengutronix * -- cgit v1.2.3