Constify get_exec_file
[deliverable/binutils-gdb.git] / gdb / corefile.c
index f22c1540cb16b4bd441ee983013f7c6efc14c861..c4735ada00ae0c2fcbcedd979a2ae1723e7ddfd6 100644 (file)
@@ -141,7 +141,7 @@ validate_files (void)
 
 /* See gdbsupport/common-inferior.h.  */
 
-char *
+const char *
 get_exec_file (int err)
 {
   if (exec_filename)
@@ -151,7 +151,6 @@ get_exec_file (int err)
 
   error (_("No executable file specified.\n\
 Use the \"file\" or \"exec-file\" command."));
-  return NULL;
 }
 \f
 
This page took 0.026004 seconds and 4 git commands to generate.