Skip to content

Commit

Permalink
Change in vocabulary: "Target String" -> "Target Name"
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 1, 2009
1 parent 90e9f85 commit 59d35da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions utils/fatelf-info.c
Expand Up @@ -36,8 +36,8 @@ static int fatelf_info(const char *fname)
machine ? ": " : "", machine ? machine->desc : "");
printf(" Offset %llu\n", (unsigned long long) rec->offset);
printf(" Size %llu\n", (unsigned long long) rec->size);
printf(" Target string: '%s' or 'record%u'\n",
fatelf_get_target_string(rec, FATELF_WANT_EVERYTHING), i);
printf(" Target name: '%s' or 'record%u'\n",
fatelf_get_target_name(rec, FATELF_WANT_EVERYTHING), i);
} // for

xclose(fname, fd);
Expand Down
2 changes: 1 addition & 1 deletion utils/fatelf-split.c
Expand Up @@ -12,7 +12,7 @@
static char *make_filename(const char *base, const int wants,
const FATELF_record *rec)
{
const char *target = fatelf_get_target_string(rec, wants);
const char *target = fatelf_get_target_name(rec, wants);
const size_t len = strlen(base) + strlen(target) + 2;
char *retval = (char *) xmalloc(len);
snprintf(retval, len, "%s-%s", base, target);
Expand Down
4 changes: 2 additions & 2 deletions utils/fatelf-utils.c
Expand Up @@ -810,7 +810,7 @@ const char *fatelf_get_wordsize_target_name(const uint8_t wordsize)



const char *fatelf_get_target_string(const FATELF_record *rec, const int wants)
const char *fatelf_get_target_name(const FATELF_record *rec, const int wants)
{
// !!! FIXME: this code is sort of stinky.
static char buffer[128];
Expand Down Expand Up @@ -859,7 +859,7 @@ const char *fatelf_get_target_string(const FATELF_record *rec, const int wants)
} // if

return buffer;
} // fatelf_get_target_string
} // fatelf_get_target_name


void xfatelf_init(int argc, const char **argv)
Expand Down
2 changes: 1 addition & 1 deletion utils/fatelf-utils.h
Expand Up @@ -107,7 +107,7 @@ const fatelf_osabi_info *get_osabi_by_id(const uint8_t id);
const fatelf_osabi_info *get_osabi_by_name(const char *name);

// Returns a string that can be used to target a specific record.
const char *fatelf_get_target_string(const FATELF_record *rec, const int wants);
const char *fatelf_get_target_name(const FATELF_record *rec, const int wants);

// these return static strings of english words.
const char *fatelf_get_wordsize_string(const uint8_t wordsize);
Expand Down

0 comments on commit 59d35da

Please sign in to comment.