diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-23 22:55:24 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-23 22:55:24 +0000 |
commit | 0eeb4117b4bb956f7a79d66ab2af45d87d9ca322 (patch) | |
tree | 4dd63d3b0b82099088f4c52043fbb991f94d7970 /sbin/pdisk/io.h | |
parent | c85b4c3df1ca241e684e5c69658b95bb1e2965ff (diff) |
No need for 'default_value' parameter for get_number_argument() since we
always pass kDefault. a.k.a. -1. Nuke kDefault since it is now unused.
Nuke unused #define MAXIOSIZE in passing.
Diffstat (limited to 'sbin/pdisk/io.h')
-rw-r--r-- | sbin/pdisk/io.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sbin/pdisk/io.h b/sbin/pdisk/io.h index 2b4c944acdd..af01b14f6ca 100644 --- a/sbin/pdisk/io.h +++ b/sbin/pdisk/io.h @@ -1,4 +1,4 @@ -/* $OpenBSD: io.h,v 1.9 2016/01/23 19:14:04 krw Exp $ */ +/* $OpenBSD: io.h,v 1.10 2016/01/23 22:55:23 krw Exp $ */ /* * io.h - simple io and input parsing routines @@ -30,16 +30,11 @@ #ifndef __io__ #define __io__ - -#define MAXIOSIZE 2048 - -extern const long kDefault; - void bad_input(const char *, ...); void flush_to_newline(int); int get_command(const char *, int, int *); unsigned long get_multiplier(long); -int get_number_argument(const char *, long *, long); +int get_number_argument(const char *, long *); int get_okay(const char *, int); int get_partition_modifier(void); int get_string_argument(const char *, char **); |