summaryrefslogtreecommitdiff
path: root/sbin/pdisk/file_media.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-01-17 15:57:13 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-01-17 15:57:13 +0000
commit24347501fd8b9d7b9879c4b2ccdff511a9c80c33 (patch)
tree689966441c19ea77bf000e74a7814f16c128141d /sbin/pdisk/file_media.h
parent73736c4c013f8649ce05adc18a201a154eb01306 (diff)
Let the great de-typedef'ification begin. MEDIA -> struct file_media *.
Diffstat (limited to 'sbin/pdisk/file_media.h')
-rw-r--r--sbin/pdisk/file_media.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/sbin/pdisk/file_media.h b/sbin/pdisk/file_media.h
index 4105a9ff855..d37c91f3ada 100644
--- a/sbin/pdisk/file_media.h
+++ b/sbin/pdisk/file_media.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: file_media.h,v 1.7 2016/01/16 22:28:14 krw Exp $ */
+/* $OpenBSD: file_media.h,v 1.8 2016/01/17 15:57:12 krw Exp $ */
/*
* file_media.h -
@@ -39,7 +39,6 @@
/*
* Types
*/
-typedef struct file_media *FILE_MEDIA;
struct file_media {
long long size_in_bytes; /* offset granularity */
@@ -61,10 +60,10 @@ struct file_media {
/*
* Forward declarations
*/
-FILE_MEDIA open_file_as_media(char *file, int oflag);
-long read_file_media(FILE_MEDIA m, long long offset, unsigned long count, void *address);
-long write_file_media(FILE_MEDIA m, long long offset, unsigned long count, void *address);
-long close_file_media(FILE_MEDIA m);
-long os_reload_file_media(FILE_MEDIA m);
+struct file_media *open_file_as_media(char *file, int oflag);
+long read_file_media(struct file_media *m, long long offset, unsigned long count, void *address);
+long write_file_media(struct file_media *m, long long offset, unsigned long count, void *address);
+long close_file_media(struct file_media *m);
+long os_reload_file_media(struct file_media *m);
#endif /* __file_media__ */