From 0eeb4117b4bb956f7a79d66ab2af45d87d9ca322 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sat, 23 Jan 2016 22:55:24 +0000 Subject: 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. --- sbin/pdisk/io.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sbin/pdisk/io.h') 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 **); -- cgit v1.2.3