diff options
| author | Miguel <m.i@gmx.at> | 2018-10-15 16:29:50 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-10-15 16:29:50 +0200 |
| commit | e3a8099343aac9d94f411638ad84632d4b620132 (patch) | |
| tree | f0a1f73ab106c17b25fd8a5264a66b6b48e55e48 /fs/sysfs.c | |
| parent | f35d2124c36f8d39a953b76620e081b79c2faffd (diff) | |
cleanup sys/ etc
Diffstat (limited to 'fs/sysfs.c')
| -rw-r--r-- | fs/sysfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -31,11 +31,11 @@ fd sysfs_file_open(mount *m,char *path) return fd_from_sysfs(map[0],map[1]); } -int sysfs_read_dir(mount *m,char *path, fs_dirent *dirs, uint32_t *pos) +int sysfs_read_dir(mount *m,char *path, struct dirent *dirs, uint32_t *pos) { if(*pos>=count)return 0; - memcpy(dirs->name,names[*pos],strlen(names[*pos])+1); - dirs->inode=0; + memcpy(dirs->d_name,names[*pos],strlen(names[*pos])+1); + dirs->d_ino=0; *pos+=1; return 1; } |
