Changeset 8d6a41c in mainline for uspace/lib/c
- Timestamp:
- 2011-11-05T13:00:34Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45ffe9f
- Parents:
- 72fda53
- Location:
- uspace/lib/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/vfs/vfs.c
r72fda53 r8d6a41c 35 35 #include <vfs/canonify.h> 36 36 #include <vfs/vfs.h> 37 #include <vfs/vfs_mtab.h>38 37 #include <vfs/vfs_sess.h> 39 38 #include <macros.h> … … 849 848 850 849 for (i = 0; i < num_mounted_fs; ++i) { 851 mtab_list_ent_t *mtab_list_ent;852 850 mtab_ent_t *mtab_ent; 853 851 854 mtab_ list_ent = malloc(sizeof(mtab_list_ent_t));855 if (!mtab_ list_ent) {852 mtab_ent = malloc(sizeof(mtab_ent_t)); 853 if (!mtab_ent) { 856 854 rc = ENOMEM; 857 855 goto exit; 858 856 } 859 857 860 memset(mtab_list_ent, 0, sizeof(mtab_list_ent_t)); 861 862 mtab_ent = &mtab_list_ent->mtab_ent; 858 memset(mtab_ent, 0, sizeof(mtab_ent_t)); 863 859 864 860 rc = async_data_read_start(exch, (void *) mtab_ent->mp, … … 890 886 mtab_ent->fs_handle = p[2]; 891 887 892 link_initialize(&mtab_ list_ent->link);893 list_append(&mtab_ list_ent->link, mtab_list);888 link_initialize(&mtab_ent->link); 889 list_append(&mtab_ent->link, mtab_list); 894 890 } 895 891 -
uspace/lib/c/include/vfs/vfs_mtab.h
r72fda53 r8d6a41c 40 40 41 41 typedef struct mtab_ent { 42 link_t link; 42 43 char mp[MAX_PATH_LEN]; 43 44 char opts[MAX_MNTOPTS_LEN]; … … 48 49 } mtab_ent_t; 49 50 50 typedef struct mtab_list_ent {51 link_t link;52 mtab_ent_t mtab_ent;53 } mtab_list_ent_t;54 55 51 #endif 56 52
Note:
See TracChangeset
for help on using the changeset viewer.