git-svn: trunk@3005
Tomasz Kojm authored on 2007/04/01 19:12:19... | ... |
@@ -885,31 +885,3 @@ int cli_bitset_test(bitset_t *bs, unsigned long bit_offset) |
885 | 885 |
} |
886 | 886 |
return (bs->bitset[char_offset] & ((unsigned char)1 << bit_offset)); |
887 | 887 |
} |
888 |
- |
|
889 |
- |
|
890 |
-/* |
|
891 |
- * Code from NJH |
|
892 |
- * Different operating systems allow different characters in their filenames |
|
893 |
- * FIXME: What does QNX want? There is no #ifdef C_QNX, but if there were |
|
894 |
- * it may be best to treat it like MSDOS |
|
895 |
- */ |
|
896 |
-void |
|
897 |
-cli_sanitise_filename(char *name) |
|
898 |
-{ |
|
899 |
- if(name == NULL) |
|
900 |
- return; |
|
901 |
- |
|
902 |
- while(*name) { |
|
903 |
-#ifdef C_DARWIN |
|
904 |
- *name &= '\177'; |
|
905 |
-#endif |
|
906 |
- /* Also check for tab - "Heinz Martin" <Martin@hemag.ch> */ |
|
907 |
-#if defined(MSDOS) || defined(C_CYGWIN) || defined(C_WINDOWS) || defined(C_OS2) |
|
908 |
- if(strchr("%/*?<>|\\\"+=,;:\t ~", *name)) |
|
909 |
-#else |
|
910 |
- if(*name == '/') |
|
911 |
-#endif |
|
912 |
- *name = '_'; |
|
913 |
- name++; |
|
914 |
- } |
|
915 |
-} |
... | ... |
@@ -190,7 +190,6 @@ bitset_t *cli_bitset_init(void); |
190 | 190 |
void cli_bitset_free(bitset_t *bs); |
191 | 191 |
int cli_bitset_set(bitset_t *bs, unsigned long bit_offset); |
192 | 192 |
int cli_bitset_test(bitset_t *bs, unsigned long bit_offset); |
193 |
-void cli_sanitise_filename(char *name); |
|
194 | 193 |
|
195 | 194 |
#if WORDS_BIGENDIAN == 0 |
196 | 195 |
#define cli_readint32(buff) (*(const int32_t *)(buff)) |