Skip to content

Commit d628e25

Browse files
committed
clang12: remove var that is only used on INFO
1 parent 52b98c0 commit d628e25

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

plugins/deaddrop/protocol_lws_deaddrop.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ scan_upload_dir(struct vhd_deaddrop *vhd)
135135
char filepath[256], subdir[3][128], *p;
136136
struct lwsac *lwsac_head = NULL;
137137
lws_list_ptr sorted_head = NULL;
138-
int i, sp = 0, found = 0;
139138
struct dir_entry *dire;
140139
struct dirent *de;
141140
size_t initial, m;
141+
int i, sp = 0;
142142
struct stat s;
143143
DIR *dir[3];
144144

@@ -224,8 +224,6 @@ scan_upload_dir(struct vhd_deaddrop *vhd)
224224
lws_strncpy(dire->user, subdir[1], sizeof(dire->user));
225225
#endif
226226

227-
found++;
228-
229227
memcpy(&dire[1], filepath + initial, m);
230228

231229
lws_list_ptr_insert(&sorted_head, &dire->next, de_mtime_sort);
@@ -244,8 +242,6 @@ scan_upload_dir(struct vhd_deaddrop *vhd)
244242

245243
vhd->filelist_version++;
246244

247-
lwsl_info("%s: found %d\n", __func__, found);
248-
249245
lws_start_foreach_llp(struct pss_deaddrop **, ppss, vhd->pss_head) {
250246
start_sending_dir(*ppss);
251247
lws_callback_on_writable((*ppss)->wsi);

0 commit comments

Comments
 (0)