mtp: Address clang compilation errors

* Move default value of debug_enabled to declaration
* Set more-correct fake values for MtpProperty sets

Change-Id: Ife3c15ac6c908848c16a609e8e505336e53c19d8
This commit is contained in:
Matt Mower
2015-11-12 01:29:58 -06:00
committed by Ethan Yonker
parent 582949125c
commit 72cf09d617
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -836,8 +836,8 @@ MtpProperty* MyMtpDatabase::getDevicePropertyDesc(MtpDeviceProperty property) {
// get current value
// TODO: add actual values
result->setCurrentValue('\0');
result->setDefaultValue('\0');
result->setCurrentValue(0);
result->setDefaultValue(0);
break;
}
+1 -1
View File
@@ -68,7 +68,7 @@ int main(int argc, char* argv[]) {
}
#endif //def TWRPMTP
twrpMtp::twrpMtp(int debug_enabled = 0) {
twrpMtp::twrpMtp(int debug_enabled) {
if (debug_enabled)
MtpDebug::enableDebug();
mtpstorages = new storages;
+1 -1
View File
@@ -33,7 +33,7 @@
class twrpMtp {
public:
twrpMtp(int debug_enabled /* = 0 */);
twrpMtp(int debug_enabled = 0);
pthread_t threadserver(void);
pid_t forkserver(int mtppipe[2]);
void addStorage(std::string display, std::string path, int mtpid, uint64_t maxFileSize);