summaryrefslogtreecommitdiffstats
path: root/lib/libdisk
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-04-25 22:29:30 +0000
committerimp <imp@FreeBSD.org>1999-04-25 22:29:30 +0000
commit404ab5f9ba8f886a2b4a3de13ab226213fd976bb (patch)
treead323a333603d18cc896ee80fad1f67b354df9de /lib/libdisk
parent8b33b875effcc83c5a2de2bd72e2c70b04652373 (diff)
downloadFreeBSD-src-404ab5f9ba8f886a2b4a3de13ab226213fd976bb.zip
FreeBSD-src-404ab5f9ba8f886a2b4a3de13ab226213fd976bb.tar.gz
More egcs warning fixes:
o use braces to avoid potentially ambiguous else o don't default to type int (and also remove a useless register modifier). o Use parens around assignment values used as truth values. o Remove unused function. Reviewed by: obrien and chuckr
Diffstat (limited to 'lib/libdisk')
-rw-r--r--lib/libdisk/disk.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c
index 8ac28e2..63d2ebb 100644
--- a/lib/libdisk/disk.c
+++ b/lib/libdisk/disk.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: disk.c,v 1.39 1998/12/19 18:48:33 phk Exp $
+ * $Id: disk.c,v 1.40 1999/01/29 11:39:24 jkh Exp $
*
*/
@@ -50,16 +50,6 @@ Read_Int32(u_int32_t *p)
return bp[0] | (bp[1] << 8) | (bp[2] << 16) | (bp[3] << 24);
}
-static void
-Write_Int32(u_int32_t *p, u_int32_t v)
-{
- u_int8_t *bp = (u_int8_t *)p;
- bp[0] = (v >> 0) & 0xff;
- bp[1] = (v >> 8) & 0xff;
- bp[2] = (v >> 16) & 0xff;
- bp[3] = (v >> 24) & 0xff;
-}
-
struct disk *
Int_Open_Disk(const char *name, u_long size)
{
OpenPOWER on IntegriCloud