mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-23 10:06:25 +01:00
parent
16bcbad689
commit
ed7e548bf3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17459
@ -45,15 +45,15 @@ static int eflag;
|
||||
static int dflag;
|
||||
static int nameblock = NAMEBLOCK;
|
||||
|
||||
char * myname;
|
||||
#define BOOT_MAGIC 0xAA55
|
||||
|
||||
extern char *__progname;
|
||||
|
||||
static void usage(void) {
|
||||
printf (" usage: %s [-b] device bootstring [bootstring] ...\n"
|
||||
,myname);
|
||||
printf (" or: %s {-e,-d} device \n"
|
||||
,myname);
|
||||
printf (" flags are mutually exclusive\n");
|
||||
fprintf (stderr, " usage: %s [-b] device bootstring [bootstring] ...\n"
|
||||
, __progname);
|
||||
fprintf (stderr, " or: %s {-e,-d} device \n" , __progname);
|
||||
fprintf (stderr, "The -e and -d flags are mutually exclusive\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@ -66,7 +66,6 @@ main (int argc, char** argv)
|
||||
int part;
|
||||
|
||||
bflag = 0;
|
||||
myname = argv[0];
|
||||
while ((ch = getopt(argc, argv, "bde")) != EOF) {
|
||||
switch(ch) {
|
||||
case 'b':
|
||||
|
@ -45,15 +45,15 @@ static int eflag;
|
||||
static int dflag;
|
||||
static int nameblock = NAMEBLOCK;
|
||||
|
||||
char * myname;
|
||||
#define BOOT_MAGIC 0xAA55
|
||||
|
||||
extern char *__progname;
|
||||
|
||||
static void usage(void) {
|
||||
printf (" usage: %s [-b] device bootstring [bootstring] ...\n"
|
||||
,myname);
|
||||
printf (" or: %s {-e,-d} device \n"
|
||||
,myname);
|
||||
printf (" flags are mutually exclusive\n");
|
||||
fprintf (stderr, " usage: %s [-b] device bootstring [bootstring] ...\n"
|
||||
, __progname);
|
||||
fprintf (stderr, " or: %s {-e,-d} device \n" , __progname);
|
||||
fprintf (stderr, "The -e and -d flags are mutually exclusive\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@ -66,7 +66,6 @@ main (int argc, char** argv)
|
||||
int part;
|
||||
|
||||
bflag = 0;
|
||||
myname = argv[0];
|
||||
while ((ch = getopt(argc, argv, "bde")) != EOF) {
|
||||
switch(ch) {
|
||||
case 'b':
|
||||
|
Loading…
Reference in New Issue
Block a user