Changes in / [2d1ba51:747ef72] in mainline
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mount/mount.c
r2d1ba51 r747ef72 27 27 */ 28 28 29 #include <loc.h> 29 30 #include <stdio.h> 30 31 #include <stdlib.h> … … 67 68 { 68 69 LIST_INITIALIZE(mtab_list); 70 mtab_ent_t *old_ent = NULL; 71 char *svc_name; 72 int rc; 73 69 74 get_mtab_list(&mtab_list); 70 71 mtab_ent_t *old_ent = NULL;72 75 73 76 list_foreach(mtab_list, cur) { … … 83 86 if (mtab_ent->instance) 84 87 printf("/%d", mtab_ent->instance); 85 printf(" on %s ", mtab_ent->mp); 88 89 printf(" %s", mtab_ent->mp); 90 91 rc = loc_service_get_name(mtab_ent->service_id, &svc_name); 92 if (rc == EOK) { 93 printf(" %s", svc_name); 94 free(svc_name); 95 } else { 96 printf(" (%" PRIun ")", mtab_ent->service_id); 97 } 86 98 87 99 if (str_size(mtab_ent->opts) > 0) 88 printf(" opts=%s", mtab_ent->opts);100 printf(" (%s)", mtab_ent->opts); 89 101 90 p rintf("(service=%" PRIun ")\n", mtab_ent->service_id);102 putchar('\n'); 91 103 } 92 104 -
uspace/app/locinfo/locinfo.c
r2d1ba51 r747ef72 89 89 } 90 90 printf("\t%s (%" PRIun ")\n", svc_name, svc_ids[j]); 91 free(svc_name); 91 92 } 92 93 -
uspace/srv/hid/input/ctl/kbdev.c
r2d1ba51 r747ef72 111 111 printf("%s: Failed allocating device structure for '%s'.\n", 112 112 NAME, kdev->svc_name); 113 async_hangup(sess); 113 114 return -1; 114 115 } … … 169 170 callid = async_get_call(&call); 170 171 if (!IPC_GET_IMETHOD(call)) { 171 /* XXX Handle hangup */172 kbdev_destroy(kbdev); 172 173 return; 173 174 } -
uspace/srv/hid/input/proto/mousedev.c
r2d1ba51 r747ef72 54 54 /** Link to generic mouse device */ 55 55 mouse_dev_t *mouse_dev; 56 57 /** Session to mouse device */58 async_sess_t *sess;59 56 } mousedev_t; 60 57 … … 72 69 static void mousedev_destroy(mousedev_t *mousedev) 73 70 { 74 if (mousedev->sess != NULL)75 async_hangup(mousedev->sess);76 77 71 free(mousedev); 78 72 } … … 89 83 90 84 if (!IPC_GET_IMETHOD(call)) { 91 /* XXX Handle hangup */85 mousedev_destroy(mousedev); 92 86 return; 93 87 } … … 129 123 printf("%s: Failed allocating device structure for '%s'.\n", 130 124 NAME, mdev->svc_name); 125 async_hangup(sess); 131 126 return -1; 132 127 } 133 134 mousedev->sess = sess;135 128 136 129 async_exch_t *exch = async_exchange_begin(sess); … … 139 132 mdev->svc_name); 140 133 mousedev_destroy(mousedev); 134 async_hangup(sess); 141 135 return -1; 142 136 } … … 144 138 int rc = async_connect_to_me(exch, 0, 0, 0, mousedev_callback_conn, mousedev); 145 139 async_exchange_end(exch); 140 async_hangup(sess); 146 141 147 142 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.