summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-01-16 22:01:27 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-01-16 22:01:27 +0000
commit883a0a1a0aa459239b32b0b3a33a5a12a5a56ac9 (patch)
tree8556de2f1f8f593fe86a791968765fc3740a1a1f /sbin
parent3d3e9d6b831e5a78417ccc43676e2d9ac9341549 (diff)
Another to the attic.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pdisk/media.c93
1 files changed, 0 insertions, 93 deletions
diff --git a/sbin/pdisk/media.c b/sbin/pdisk/media.c
deleted file mode 100644
index 79ca3f84eb1..00000000000
--- a/sbin/pdisk/media.c
+++ /dev/null
@@ -1,93 +0,0 @@
-/* $OpenBSD: media.c,v 1.11 2016/01/16 21:41:41 krw Exp $ */
-
-/*
- * media.c -
- *
- * Written by Eryk Vershen
- */
-
-/*
- * 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.
- */
-
-
-// for printf()
-#include <stdio.h>
-// for malloc() & free()
-#include <stdlib.h>
-
-#include "media.h"
-
-
-/*
- * Defines
- */
-
-
-/*
- * Types
- */
-
-
-/*
- * Global Constants
- */
-
-
-/*
- * Global Variables
- */
-
-/*
- * Forward declarations
- */
-
-
-/*
- * Routines
- */
-
-
-MEDIA
-new_media(long size)
-{
- return malloc(size);
-}
-
-
-void
-delete_media(MEDIA m)
-{
- if (m == 0) {
- return;
- }
- free(m);
-}
-
-
-long long
-media_total_size(MEDIA m)
-{
- if (m == 0) {
- return 0;
- } else {
- return m->size_in_bytes;
- }
-}