diff --git a/contrib/gcc/gcc.c b/contrib/gcc/gcc.c index cba513a0d593..fa9d5c0212f3 100644 --- a/contrib/gcc/gcc.c +++ b/contrib/gcc/gcc.c @@ -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); } diff --git a/usr.bin/objformat/objformat.c b/usr.bin/objformat/objformat.c index 92440d642637..827af6eda1e9 100644 --- a/usr.bin/objformat/objformat.c +++ b/usr.bin/objformat/objformat.c @@ -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); }