diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-12 04:59:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-12 04:59:03 +0000 |
commit | 9e1b2ae8848d9962327a4ef2e82b6a42109d7d3b (patch) | |
tree | cfbcaccd4d5ade36331a699b8b5a8bf2171168f3 /sbin/disklabel | |
parent | 66902d59f0fe1ecf1b6515121102bcad58fe8132 (diff) |
add a variety of missing prototypes
Diffstat (limited to 'sbin/disklabel')
-rw-r--r-- | sbin/disklabel/editor.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index daaa48b997e..c9dd8f140c3 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.276 2013/10/21 07:59:34 otto Exp $ */ +/* $OpenBSD: editor.c,v 1.277 2013/11/12 04:59:02 deraadt Exp $ */ /* * Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com> @@ -152,6 +152,8 @@ void set_geometry(struct disklabel *, struct disklabel *, struct disklabel *, void zero_partitions(struct disklabel *); u_int64_t max_partition_size(struct disklabel *, int); void display_edit(struct disklabel *, char, u_int64_t); +int64_t getphysmem(void); +void psize(u_int64_t sz, char unit, struct disklabel *lp); static u_int64_t starting_sector; static u_int64_t ending_sector; @@ -512,6 +514,7 @@ getphysmem(void) int64_t physmem; size_t sz = sizeof(physmem); int mib[] = { CTL_HW, HW_PHYSMEM64 }; + if (sysctl(mib, 2, &physmem, &sz, NULL, (size_t)0) == -1) errx(4, "can't get mem size"); return physmem; |