diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-02-10 04:43:58 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:21 -0500 |
commit | 5bbcbeca2c8933ee2b3402ea5eca523d971a8785 (patch) | |
tree | ff0107d3d0d8537e0719eaa5e4d8b3108aeabd01 /arch/um/drivers/harddog_user.c | |
parent | 42d36115d25725fb551250c8f70602a12aa8dee2 (diff) |
[PATCH] uml: watchdog driver formatting
Whitespace and style fixes.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/drivers/harddog_user.c')
-rw-r--r-- | arch/um/drivers/harddog_user.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/arch/um/drivers/harddog_user.c b/arch/um/drivers/harddog_user.c index def013b5a3c7..c495ecf263b1 100644 --- a/arch/um/drivers/harddog_user.c +++ b/arch/um/drivers/harddog_user.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) | 2 | * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) |
3 | * Licensed under the GPL | 3 | * Licensed under the GPL |
4 | */ | 4 | */ |
@@ -38,7 +38,7 @@ int start_watchdog(int *in_fd_ret, int *out_fd_ret, char *sock) | |||
38 | int in_fds[2], out_fds[2], pid, n, err; | 38 | int in_fds[2], out_fds[2], pid, n, err; |
39 | char pid_buf[sizeof("nnnnn\0")], c; | 39 | char pid_buf[sizeof("nnnnn\0")], c; |
40 | char *pid_args[] = { "/usr/bin/uml_watchdog", "-pid", pid_buf, NULL }; | 40 | char *pid_args[] = { "/usr/bin/uml_watchdog", "-pid", pid_buf, NULL }; |
41 | char *mconsole_args[] = { "/usr/bin/uml_watchdog", "-mconsole", NULL, | 41 | char *mconsole_args[] = { "/usr/bin/uml_watchdog", "-mconsole", NULL, |
42 | NULL }; | 42 | NULL }; |
43 | char **args = NULL; | 43 | char **args = NULL; |
44 | 44 | ||
@@ -96,7 +96,7 @@ int start_watchdog(int *in_fd_ret, int *out_fd_ret, char *sock) | |||
96 | } | 96 | } |
97 | *in_fd_ret = in_fds[0]; | 97 | *in_fd_ret = in_fds[0]; |
98 | *out_fd_ret = out_fds[1]; | 98 | *out_fd_ret = out_fds[1]; |
99 | return(0); | 99 | return 0; |
100 | 100 | ||
101 | out_close_in: | 101 | out_close_in: |
102 | os_close_file(in_fds[0]); | 102 | os_close_file(in_fds[0]); |
@@ -105,7 +105,7 @@ int start_watchdog(int *in_fd_ret, int *out_fd_ret, char *sock) | |||
105 | os_close_file(out_fds[0]); | 105 | os_close_file(out_fds[0]); |
106 | os_close_file(out_fds[1]); | 106 | os_close_file(out_fds[1]); |
107 | out: | 107 | out: |
108 | return(err); | 108 | return err; |
109 | } | 109 | } |
110 | 110 | ||
111 | void stop_watchdog(int in_fd, int out_fd) | 111 | void stop_watchdog(int in_fd, int out_fd) |
@@ -123,20 +123,9 @@ int ping_watchdog(int fd) | |||
123 | if(n != sizeof(c)){ | 123 | if(n != sizeof(c)){ |
124 | printk("ping_watchdog - write failed, err = %d\n", -n); | 124 | printk("ping_watchdog - write failed, err = %d\n", -n); |
125 | if(n < 0) | 125 | if(n < 0) |
126 | return(n); | 126 | return n; |
127 | return(-EIO); | 127 | return -EIO; |
128 | } | 128 | } |
129 | return 1; | 129 | return 1; |
130 | 130 | ||
131 | } | 131 | } |
132 | |||
133 | /* | ||
134 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
135 | * Emacs will notice this stuff at the end of the file and automatically | ||
136 | * adjust the settings for this buffer only. This must remain at the end | ||
137 | * of the file. | ||
138 | * --------------------------------------------------------------------------- | ||
139 | * Local variables: | ||
140 | * c-file-style: "linux" | ||
141 | * End: | ||
142 | */ | ||