src/server/safs/service.c

changeset 57
b3a89736b23e
parent 56
c6cf20b09043
child 58
66c22e54aa90
equal deleted inserted replaced
56:c6cf20b09043 57:b3a89736b23e
137 sbuf_puts(out, uri); 137 sbuf_puts(out, uri);
138 sbuf_puts(out, "</h1><hr>\n\n"); 138 sbuf_puts(out, "</h1><hr>\n\n");
139 139
140 //struct dirent *f; 140 //struct dirent *f;
141 VFS_ENTRY f; 141 VFS_ENTRY f;
142 while((vfs_readdir(dir, &f)) != NULL) { 142 while(vfs_readdir(dir, &f)) {
143 if(strcmp(f.name, ".") == 0 || strcmp(f.name, "..") == 0) { 143 if(strcmp(f.name, ".") == 0 || strcmp(f.name, "..") == 0) {
144 continue; 144 continue;
145 } 145 }
146 146
147 sstr_t filename = sstr(f.name); 147 sstr_t filename = sstr(f.name);

mercurial