diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2015-03-16 23:51:51 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2015-03-16 23:51:51 +0000 |
commit | 232a2f05d9f71e64ae425a3947b98559ba6d177b (patch) | |
tree | bd0b9f3be8084738fe30c2456c72182f1ec49836 /sbin/fdisk/user.h | |
parent | 6bbc2077ce2790382a145103f44a5940ebb234e2 (diff) |
Stop passing around a pointer to the stack variable 'disk' in main().
There is only one disk being worked on, so just make it a global.
Fewer parameters, less confusion, no functional change.
Diffstat (limited to 'sbin/fdisk/user.h')
-rw-r--r-- | sbin/fdisk/user.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fdisk/user.h b/sbin/fdisk/user.h index 85d12e3552c..e74885303f2 100644 --- a/sbin/fdisk/user.h +++ b/sbin/fdisk/user.h @@ -1,4 +1,4 @@ -/* $OpenBSD: user.h,v 1.14 2015/03/16 18:45:51 krw Exp $ */ +/* $OpenBSD: user.h,v 1.15 2015/03/16 23:51:50 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -20,7 +20,7 @@ #define _USER_H /* Prototypes */ -void USER_edit(struct disk *, struct mbr *, off_t, off_t); -void USER_print_disk(struct disk *); +void USER_edit(struct mbr *, off_t, off_t); +void USER_print_disk(void); #endif /* _USER_H */ |