diff options
| author | Gary Ching-Pang Lin <glin@suse.com> | 2015-10-13 18:18:25 +0800 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2016-09-06 14:49:52 -0400 |
| commit | 24c5904becc1c539cc5b02ca8228d7ebd8401198 (patch) | |
| tree | 445c3798a00e73fa31d0bb23b081ef4c1868e37a /netboot.c | |
| parent | 467878f3e023d649748cf8a64a4b53a0b0cd79bc (diff) | |
| download | efi-boot-shim-24c5904becc1c539cc5b02ca8228d7ebd8401198.tar.gz efi-boot-shim-24c5904becc1c539cc5b02ca8228d7ebd8401198.zip | |
Make translate_slashes() public
Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Diffstat (limited to 'netboot.c')
| -rw-r--r-- | netboot.c | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -54,24 +54,6 @@ typedef struct { UINT8 Data[1]; } EFI_DHCP6_PACKET_OPTION; -static CHAR8 * -translate_slashes(char *str) -{ - int i; - int j; - if (str == NULL) - return (CHAR8 *)str; - - for (i = 0, j = 0; str[i] != '\0'; i++, j++) { - if (str[i] == '\\') { - str[j] = '/'; - if (str[i+1] == '\\') - i++; - } - } - return (CHAR8 *)str; -} - /* * usingNetboot * Returns TRUE if we identify a protocol that is enabled and Providing us with |
