Skip to content

Commit

Permalink
[PATCH] docs: laptop-mode.txt source file build
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Apr 11, 2006
1 parent 56b146d commit 8c37bea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Documentation/laptop-mode.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 8c37bea

Please sign in to comment.