aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/upload.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/upload.c')
-rw-r--r--src/plugins/fs/upload.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/fs/upload.c b/src/plugins/fs/upload.c
index 5ab6d75a..6d6ee123 100644
--- a/src/plugins/fs/upload.c
+++ b/src/plugins/fs/upload.c
@@ -142,7 +142,7 @@ fs_upload_started(struct FSUI_UploadList * fsui,
142 GtkTreePath * path; 142 GtkTreePath * path;
143 int progress; 143 int progress;
144 GtkTreeIter par; 144 GtkTreeIter par;
145 145
146 ret = MALLOC(sizeof(UploadList)); 146 ret = MALLOC(sizeof(UploadList));
147 memset(ret, 147 memset(ret,
148 0, 148 0,
@@ -163,7 +163,7 @@ fs_upload_started(struct FSUI_UploadList * fsui,
163 gtk_tree_store_append(upload_summary, 163 gtk_tree_store_append(upload_summary,
164 &iter, 164 &iter,
165 NULL); 165 NULL);
166 } 166 }
167 if (total != 0) 167 if (total != 0)
168 progress = 100 * completed / total; 168 progress = 100 * completed / total;
169 else 169 else
@@ -329,7 +329,7 @@ typedef struct {
329 329
330static void * start_upload_helper(void * cls) { 330static void * start_upload_helper(void * cls) {
331 FSUC * fsuc = cls; 331 FSUC * fsuc = cls;
332 332
333 FSUI_startUpload(ctx, 333 FSUI_startUpload(ctx,
334 fsuc->filename, 334 fsuc->filename,
335 (DirectoryScanCallback) &disk_directory_scan, 335 (DirectoryScanCallback) &disk_directory_scan,
@@ -583,7 +583,7 @@ void on_uploadFilenameComboBoxEntry_changed_fs(gpointer dummy2,
583 filename = getEntryLineValue(getMainXML(), 583 filename = getEntryLineValue(getMainXML(),
584 "uploadFilenameComboBoxEntry"); 584 "uploadFilenameComboBoxEntry");
585 ok = (0 == stat(filename, &buf)); 585 ok = (0 == stat(filename, &buf));
586 if (ok) 586 if (ok)
587 ok = (0 == ACCESS(filename, R_OK)); 587 ok = (0 == ACCESS(filename, R_OK));
588 if (ok) { 588 if (ok) {
589 if (S_ISDIR(buf.st_mode)) { 589 if (S_ISDIR(buf.st_mode)) {