1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Fixing more warnings (Paul Stoffregen).

This commit is contained in:
David A. Mellis
2011-10-10 11:28:44 -04:00
parent 965480f148
commit ca671fdc05
10 changed files with 19 additions and 18 deletions

View File

@ -348,7 +348,7 @@ boolean SDClass::begin(uint8_t csPin) {
// this little helper is used to traverse paths
SdFile SDClass::getParentDir(char *filepath, int *index) {
SdFile SDClass::getParentDir(const char *filepath, int *index) {
// get parent directory
SdFile d1 = root; // start with the mostparent, root!
SdFile d2;
@ -357,7 +357,7 @@ SdFile SDClass::getParentDir(char *filepath, int *index) {
SdFile *parent = &d1;
SdFile *subdir = &d2;
char *origpath = filepath;
const char *origpath = filepath;
while (strchr(filepath, '/')) {
@ -404,7 +404,7 @@ SdFile SDClass::getParentDir(char *filepath, int *index) {
}
File SDClass::open(char *filepath, uint8_t mode) {
File SDClass::open(const char *filepath, uint8_t mode) {
/*
Open the supplied file path for reading or writing.