diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-16 22:04:21 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-16 22:04:21 +0000 |
commit | 9830745e804317dfc2dd046483d4909e1230789e (patch) | |
tree | f39ea3552c90f53a4aa72c83f88e1bd082a91986 | |
parent | 883a0a1a0aa459239b32b0b3a33a5a12a5a56ac9 (diff) |
Oops. Missed a file.
-rw-r--r-- | sbin/pdisk/file_media.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sbin/pdisk/file_media.c b/sbin/pdisk/file_media.c index 0f52d8bfb1a..9f44487bd1c 100644 --- a/sbin/pdisk/file_media.c +++ b/sbin/pdisk/file_media.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file_media.c,v 1.24 2016/01/16 21:41:41 krw Exp $ */ +/* $OpenBSD: file_media.c,v 1.25 2016/01/16 22:04:20 krw Exp $ */ /* * file_media.c - @@ -79,7 +79,6 @@ static long file_inited = 0; */ void compute_block_size(int fd, char *name); void file_init(void); -FILE_MEDIA new_file_media(void); /* * Routines @@ -94,13 +93,6 @@ file_init(void) } -FILE_MEDIA -new_file_media(void) -{ - return (FILE_MEDIA) new_media(sizeof(struct file_media)); -} - - void compute_block_size(int fd, char *name) { @@ -134,7 +126,7 @@ open_file_as_media(char *file, int oflag) a = 0; fd = opendev(file, oflag, OPENDEV_PART, NULL); if (fd >= 0) { - a = new_file_media(); + a = malloc(sizeof(struct file_media)); if (a != 0) { compute_block_size(fd, file); off = lseek(fd, 0, SEEK_END); /* seek to end of media */ |