diff options
| author | H. Peter Anvin <hpa@zytor.com> | 2009-08-12 21:31:49 -0700 |
|---|---|---|
| committer | H. Peter Anvin <hpa@zytor.com> | 2009-08-12 21:31:49 -0700 |
| commit | a1fc1f47b4e6080edabb517a070e3c1918c1b3a1 (patch) | |
| tree | 356ba41f6458b48d80b8ec4c95eac618acf30917 /core/include/fs.h | |
| parent | 43c00b21090c396f92502a6b6fc9c2bd35f59684 (diff) | |
| download | syslinux-a1fc1f47b4e6080edabb517a070e3c1918c1b3a1.tar.gz | |
core: use stpcpy() as generic_unmangle_name()
We can use stpcpy() as generic_unmangle_name(); this also gives us the
pointer to the end that the assembly code wants and expects.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/include/fs.h')
| -rw-r--r-- | core/include/fs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/include/fs.h b/core/include/fs.h index 2840edb0..04e85ef8 100644 --- a/core/include/fs.h +++ b/core/include/fs.h @@ -3,6 +3,7 @@ #include <stddef.h> #include <stdbool.h> +#include <string.h> #include <com32.h> #include "core.h" #include "disk.h" @@ -46,7 +47,7 @@ struct fs_ops { uint32_t (*getfssec)(struct file *, char *, int, bool *); void (*close_file)(struct file *); void (*mangle_name)(char *, const char *); - void (*unmangle_name)(char *, const char *); + char * (*unmangle_name)(char *, const char *); void (*load_config)(com32sys_t *); }; @@ -56,6 +57,7 @@ enum dev_type {CHS, EDD}; * Generic functions that filesystem drivers may choose to use */ void generic_mangle_name(char *, const char *); +#define generic_unmangle_name stpcpy /* * Struct device contains: |
