mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Change /etc/objectformat to /etc/objformat. Last chance 'cause it's E-day.
Suggested by: jdp
This commit is contained in:
parent
3cba807609
commit
8472e43276
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38657
@ -2482,8 +2482,8 @@ process_command (argc, argv)
|
||||
|
||||
#if defined(FREEBSD_NATIVE) && defined(__i386__)
|
||||
{
|
||||
/* first hint is /etc/objectformat */
|
||||
FILE *fp = fopen("/etc/objectformat", "r");
|
||||
/* first hint is /etc/objformat */
|
||||
FILE *fp = fopen("/etc/objformat", "r");
|
||||
if (fp) {
|
||||
char buf[1024];
|
||||
buf[1023] = '\0';
|
||||
@ -2496,7 +2496,7 @@ process_command (argc, argv)
|
||||
else if (strcmp(buf, "OBJFORMAT=elf") == 0)
|
||||
objformat_aout = 0;
|
||||
else
|
||||
fprintf(stderr, "Unrecognized line in /etc/objectformat: %s\n", buf);
|
||||
fprintf(stderr, "Unrecognized line in /etc/objformat: %s\n", buf);
|
||||
}
|
||||
fclose(fp);
|
||||
}
|
||||
|
@ -45,8 +45,8 @@ getobjfmt(void)
|
||||
char *env;
|
||||
int i;
|
||||
|
||||
/* first hint is /etc/objectformat */
|
||||
FILE *fp = fopen("/etc/objectformat", "r");
|
||||
/* first hint is /etc/objformat */
|
||||
FILE *fp = fopen("/etc/objformat", "r");
|
||||
if (fp) {
|
||||
char buf[1024];
|
||||
buf[1023] = '\0';
|
||||
@ -59,7 +59,7 @@ getobjfmt(void)
|
||||
else if (strcmp(buf, "OBJFORMAT=elf") == 0)
|
||||
objformat_aout = 0;
|
||||
else
|
||||
fprintf(stderr, "Unrecognized line in /etc/objectformat: %s\n", buf);
|
||||
fprintf(stderr, "Unrecognized line in /etc/objformat: %s\n", buf);
|
||||
}
|
||||
fclose(fp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user