mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdump: constify dfi_vmcoreinfo_get
Caller of `dfi_vmcoreinfo_get` must not modify the returned value, therefore return a `const char *` value for `dfi_vmcoreinfo_get`. Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
029a3f8f52
commit
a6f2c38891
@@ -132,7 +132,7 @@ void dfi_vmcoreinfo_init(void)
|
||||
/*
|
||||
* Return vmcoreinfo data
|
||||
*/
|
||||
char *dfi_vmcoreinfo_get(void)
|
||||
const char *dfi_vmcoreinfo_get(void)
|
||||
{
|
||||
return l.vmcoreinfo;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#define DFI_VMCOREINFO_H
|
||||
|
||||
void dfi_vmcoreinfo_init(void);
|
||||
char *dfi_vmcoreinfo_get(void);
|
||||
const char *dfi_vmcoreinfo_get(void);
|
||||
int dfi_vmcoreinfo_tag(char *str, int len, const char *sym);
|
||||
int dfi_vmcoreinfo_symbol(unsigned long *val, const char *sym);
|
||||
int dfi_vmcoreinfo_offset(unsigned long *offs, const char *sym);
|
||||
|
||||
Reference in New Issue
Block a user