-rw-r--r-- | src/eyefiservice.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eyefiservice.cc b/src/eyefiservice.cc index 2586ade..e89b2fc 100644 --- a/src/eyefiservice.cc +++ b/src/eyefiservice.cc | |||
@@ -82,25 +82,25 @@ int eyefiService::GetPhotoStatus( | |||
82 | #ifndef NDEBUG | 82 | #ifndef NDEBUG |
83 | syslog(LOG_DEBUG, " computed credential=%s", computed_credential.c_str()); | 83 | syslog(LOG_DEBUG, " computed credential=%s", computed_credential.c_str()); |
84 | #endif | 84 | #endif |
85 | 85 | ||
86 | if (credential != computed_credential) throw std::runtime_error("card authentication failed"); | 86 | if (credential != computed_credential) throw std::runtime_error("card authentication failed"); |
87 | 87 | ||
88 | r.fileid = 1; r.offset = 0; | 88 | r.fileid = 1; r.offset = 0; |
89 | return SOAP_OK; | 89 | return SOAP_OK; |
90 | } | 90 | } |
91 | 91 | ||
92 | int eyefiService::MarkLastPhotoInRoll( | 92 | int eyefiService::MarkLastPhotoInRoll( |
93 | std::string macaddress, int mergedelta, | 93 | std::string macaddress, int mergedelta, |
94 | struct rns__MarkLastPhotoInRollResponse &r ) { | 94 | struct rns__MarkLastPhotoInRollResponse&/* r */ ) { |
95 | #ifndef NDEBUG | 95 | #ifndef NDEBUG |
96 | syslog(LOG_DEBUG, | 96 | syslog(LOG_DEBUG, |
97 | "MarkLastPhotoInRoll request from %s with mergedelta=%d", | 97 | "MarkLastPhotoInRoll request from %s with mergedelta=%d", |
98 | macaddress.c_str(), mergedelta ); | 98 | macaddress.c_str(), mergedelta ); |
99 | #endif | 99 | #endif |
100 | std::string cmd = eyekinfig_t(macaddress).get_on_mark_last_photo_in_roll(); | 100 | std::string cmd = eyekinfig_t(macaddress).get_on_mark_last_photo_in_roll(); |
101 | if(!cmd.empty()) { | 101 | if(!cmd.empty()) { |
102 | if(detached_child()) { | 102 | if(detached_child()) { |
103 | putenv( gnu::autosprintf("EYEFI_MACADDRESS=%s",macaddress.c_str()) ); | 103 | putenv( gnu::autosprintf("EYEFI_MACADDRESS=%s",macaddress.c_str()) ); |
104 | putenv( gnu::autosprintf("EYEFI_MERGEDELTA=%d",mergedelta) ); | 104 | putenv( gnu::autosprintf("EYEFI_MERGEDELTA=%d",mergedelta) ); |
105 | char *argv[] = { (char*)"/bin/sh", (char*)"-c", (char*)cmd.c_str(), 0 }; | 105 | char *argv[] = { (char*)"/bin/sh", (char*)"-c", (char*)cmd.c_str(), 0 }; |
106 | execv("/bin/sh",argv); | 106 | execv("/bin/sh",argv); |