From: Randy Dunlap Date: Tue, 11 Apr 2006 05:54:21 +0000 (-0700) Subject: [PATCH] docs: laptop-mode.txt source file build X-Git-Tag: v2.6.17-rc2~184 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c37bea1a0506f45111c64bac4325173e066b22d;p=linux-2.6 [PATCH] docs: laptop-mode.txt source file build Fix C source file in Doc/laptop-mode.txt to compile. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/Documentation/laptop-mode.txt b/Documentation/laptop-mode.txt index b18e216759..5696e87944 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();