diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2002-06-09 08:13:10 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2002-06-09 08:13:10 +0000 |
commit | 3ed8b10a8df515c0cb5a2a6a0962c67f1c697164 (patch) | |
tree | 16644eb4e4232e2d2cd65fc342c5dbaafdc4e136 /sbin/pdisk/file_media.c | |
parent | c021608bd50b74de1b8074e336f7adad03b1c7d8 (diff) |
rm trailing whitespace
Diffstat (limited to 'sbin/pdisk/file_media.c')
-rw-r--r-- | sbin/pdisk/file_media.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/sbin/pdisk/file_media.c b/sbin/pdisk/file_media.c index 9e518958f3f..d5dd989b52e 100644 --- a/sbin/pdisk/file_media.c +++ b/sbin/pdisk/file_media.c @@ -6,23 +6,23 @@ /* * Copyright 1997,1998 by Apple Computer, Inc. - * All Rights Reserved - * - * Permission to use, copy, modify, and distribute this software and - * its documentation for any purpose and without fee is hereby granted, - * provided that the above copyright notice appears in all copies and - * that both the copyright notice and this permission notice appear in - * supporting documentation. - * - * APPLE COMPUTER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE - * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE. - * - * IN NO EVENT SHALL APPLE COMPUTER BE LIABLE FOR ANY SPECIAL, INDIRECT, OR - * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT, - * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION - * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * All Rights Reserved + * + * Permission to use, copy, modify, and distribute this software and + * its documentation for any purpose and without fee is hereby granted, + * provided that the above copyright notice appears in all copies and + * that both the copyright notice and this permission notice appear in + * supporting documentation. + * + * APPLE COMPUTER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE. + * + * IN NO EVENT SHALL APPLE COMPUTER BE LIABLE FOR ANY SPECIAL, INDIRECT, OR + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT, + * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION + * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ // for printf() @@ -139,7 +139,7 @@ file_init(void) return; } file_inited = 1; - + file_info.kind = allocate_media_kind(); } @@ -160,7 +160,7 @@ compute_block_size(int fd) long t; int i; char *buffer; - + max_size = 0; for (i = 0; ; i++) { size = potential_block_sizes[i]; @@ -171,7 +171,7 @@ compute_block_size(int fd) max_size = size; } } - + buffer = malloc(max_size); if (buffer != 0) { for (i = 0; ; i++) { @@ -206,7 +206,7 @@ open_file_as_media(char *file, int oflag) if (file_inited == 0) { file_init(); } - + a = 0; fd = open(file, oflag); if (fd >= 0) { @@ -328,7 +328,7 @@ long close_file_media(MEDIA m) { FILE_MEDIA a; - + a = (FILE_MEDIA) m; if (a == 0) { return 0; @@ -336,7 +336,7 @@ close_file_media(MEDIA m) /* XXX need to error here - this is an internal problem */ return 0; } - + close(a->fd); return 1; } @@ -408,11 +408,11 @@ MEDIA_ITERATOR create_file_iterator(void) { FILE_MEDIA_ITERATOR a; - + if (file_inited == 0) { file_init(); } - + a = new_file_iterator(); if (a != 0) { a->m.kind = file_info.kind; @@ -432,7 +432,7 @@ void reset_file_iterator(MEDIA_ITERATOR m) { FILE_MEDIA_ITERATOR a; - + a = (FILE_MEDIA_ITERATOR) m; if (a == 0) { /* no media */ @@ -450,7 +450,7 @@ step_file_iterator(MEDIA_ITERATOR m) FILE_MEDIA_ITERATOR a; char *result; struct stat info; - + a = (FILE_MEDIA_ITERATOR) m; if (a == 0) { /* no media */ |