summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2006-04-11 07:54:21 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-04-11 15:18:44 +0200
commit8c37bea1a0506f45111c64bac4325173e066b22d (patch)
treee0881fe790687f8063a5178ec36b6946100a0bac
parent[PATCH] Last DMA_xBIT_MASK cleanups (diff)
downloadlinux-8c37bea1a0506f45111c64bac4325173e066b22d.tar.xz
linux-8c37bea1a0506f45111c64bac4325173e066b22d.zip
[PATCH] docs: laptop-mode.txt source file build
Fix C source file in Doc/laptop-mode.txt to compile. Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--Documentation/laptop-mode.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/laptop-mode.txt b/Documentation/laptop-mode.txt
index b18e21675906..5696e879449b 100644
--- a/Documentation/laptop-mode.txt
+++ b/Documentation/laptop-mode.txt
@@ -919,11 +919,11 @@ int main(int argc, char **argv)
int settle_time = 60;
/* Parse the simple command-line */
- if (ac == 2)
- disk = av[1];
- else if (ac == 4) {
- settle_time = atoi(av[2]);
- disk = av[3];
+ if (argc == 2)
+ disk = argv[1];
+ else if (argc == 4) {
+ settle_time = atoi(argv[2]);
+ disk = argv[3];
} else
usage();