Changeset 39330200 in mainline for uspace/lib/fs/libfs.c
- Timestamp:
- 2018-01-15T21:40:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ba29018
- Parents:
- d8023313
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-15 21:20:07)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-15 21:40:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/fs/libfs.c
rd8023313 r39330200 733 733 size_t size; 734 734 if ((!async_data_read_receive(&callid, &size)) || 735 (size != sizeof( struct stat))) {735 (size != sizeof(vfs_stat_t))) { 736 736 ops->node_put(fn); 737 737 async_answer_0(callid, EINVAL); … … 740 740 } 741 741 742 struct stat stat;743 memset(&stat, 0, sizeof( struct stat));742 vfs_stat_t stat; 743 memset(&stat, 0, sizeof(vfs_stat_t)); 744 744 745 745 stat.fs_handle = fs_handle; … … 755 755 756 756 757 async_data_read_finalize(callid, &stat, sizeof( struct stat));757 async_data_read_finalize(callid, &stat, sizeof(vfs_stat_t)); 758 758 async_answer_0(rid, EOK); 759 759 } … … 772 772 size_t size; 773 773 if ((!async_data_read_receive(&callid, &size)) || 774 (size != sizeof( struct statfs))) {774 (size != sizeof(vfs_statfs_t))) { 775 775 goto error; 776 776 } 777 777 778 struct statfsst;779 memset(&st, 0, sizeof( struct statfs));778 vfs_statfs_t st; 779 memset(&st, 0, sizeof(vfs_statfs_t)); 780 780 781 781 str_cpy(st.fs_name, sizeof(st.fs_name), fs_name); … … 800 800 801 801 ops->node_put(fn); 802 async_data_read_finalize(callid, &st, sizeof( struct statfs));802 async_data_read_finalize(callid, &st, sizeof(vfs_statfs_t)); 803 803 async_answer_0(rid, EOK); 804 804 return;
Note:
See TracChangeset
for help on using the changeset viewer.