Change int to bool for the relocate_* functions

These parameters are only used as bools. This also
renames "flag" to "relocatable" to make it clearer
what it does.

gdb/ChangeLog:

2019-09-06  Christian Biesinger  <cbiesinger@google.com>

	* defs.h (relocate_gdb_directory): Change int to bool in
	signature and rename flag to relocatable.
	* main.c (relocate_path): Likewise.
	(relocate_gdb_directory): Likewise.
This commit is contained in:
Christian Biesinger
2019-09-06 14:19:40 -05:00
parent f5c3a9e305
commit ead0e69a4a
3 changed files with 15 additions and 8 deletions

View File

@ -282,7 +282,7 @@ struct value;
/* This really belong in utils.c (path-utils.c?), but it references some
globals that are currently only available to main.c. */
extern char *relocate_gdb_directory (const char *initial, int flag);
extern char *relocate_gdb_directory (const char *initial, bool relocatable);
/* Annotation stuff. */