summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2012-01-20 20:44:42 (UTC)
committer Michael Krelin <hacker@klever.net>2012-01-20 20:44:42 (UTC)
commitad7811fbcf54d0aebcd35c20d4a211d11029d1a2 (patch) (unidiff)
treeca94dd45ab61e4569e16a8a8830f94f5365ad5f4
parentf1f12e73c9a62f29decab82c56793e4e72eea911 (diff)
downloadiii-ad7811fbcf54d0aebcd35c20d4a211d11029d1a2.zip
iii-ad7811fbcf54d0aebcd35c20d4a211d11029d1a2.tar.gz
iii-ad7811fbcf54d0aebcd35c20d4a211d11029d1a2.tar.bz2
fixed misplaced parenthesis
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/eyefiservice.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eyefiservice.cc b/src/eyefiservice.cc
index 5c4e308..9ef4bb6 100644
--- a/src/eyefiservice.cc
+++ b/src/eyefiservice.cc
@@ -199,13 +199,13 @@ int eyefiService::UploadPhoto(
199 std::string ttf,tlf; 199 std::string ttf,tlf;
200 bool success = false; 200 bool success = false;
201 for(int i=0;i<32767;++i) { 201 for(int i=0;i<32767;++i) {
202 const char *fmt = i ? "%1$s/(%3$05d)%2$s" : "%1$s/%2$s"; 202 const char *fmt = i ? "%1$s/(%3$05d)%2$s" : "%1$s/%2$s";
203 ttf = (const char*)gnu::autosprintf(fmt,td.c_str(),tbn.c_str(),i); 203 ttf = (const char*)gnu::autosprintf(fmt,td.c_str(),tbn.c_str(),i);
204 if(!lf.empty()) tlf = (const char*)gnu::autosprintf(fmt,td.c_str(),lbn.c_str(),i); 204 if(!lf.empty()) tlf = (const char*)gnu::autosprintf(fmt,td.c_str(),lbn.c_str(),i);
205 if( (!link(tf.c_str(),ttf.c_str())) && (lf.empty()) || !link(lf.c_str(),tlf.c_str()) ) { 205 if( (!link(tf.c_str(),ttf.c_str())) && (lf.empty() || !link(lf.c_str(),tlf.c_str())) ) {
206 unlink(tf.c_str()); 206 unlink(tf.c_str());
207 if(!lf.empty()) unlink(lf.c_str()); 207 if(!lf.empty()) unlink(lf.c_str());
208 success=true; 208 success=true;
209 break; 209 break;
210 } 210 }
211 } 211 }