-/* $OpenBSD: editor.c,v 1.289 2015/01/16 06:39:57 deraadt Exp $ */
+/* $OpenBSD: editor.c,v 1.290 2015/01/16 20:21:40 miod Exp $ */
/*
* Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com>
void editor_help(void);
void editor_modify(struct disklabel *, char *);
void editor_name(struct disklabel *, char *);
-char *getstring(char *, char *, char *);
+char *getstring(const char *, const char *, const char *);
u_int64_t getuint64(struct disklabel *, char *, char *, u_int64_t, u_int64_t,
u_int64_t, int);
int has_overlap(struct disklabel *);
}
char *
-getstring(char *prompt, char *helpstring, char *oval)
+getstring(const char *prompt, const char *helpstring, const char *oval)
{
static char buf[BUFSIZ];
int n;
getdisktype(struct disklabel *lp, char *banner, char *dev)
{
int i;
- char *s, *def = "SCSI";
- struct dtypes {
- char *dev;
- char *type;
+ char *s;
+ const char *def = "SCSI";
+ const struct dtypes {
+ const char *dev;
+ const char *type;
} dtypes[] = {
{ "sd", "SCSI" },
- { "rz", "SCSI" },
{ "wd", "IDE" },
{ "fd", "FLOPPY" },
{ "xd", "SMD" },
{ "xy", "SMD" },
{ "hd", "HP-IB" },
- { "ccd", "CCD" }, /* deprecated */
{ "vnd", "VND" },
{ "svnd", "VND" },
{ NULL, NULL }