Changeset 92413de in mainline for uspace/srv/devman/main.c
- Timestamp:
- 2010-02-25T21:56:24Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c16cf62
- Parents:
- 729fa2d6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/main.c
r729fa2d6 r92413de 101 101 } 102 102 103 char drv_name[DEVMAN_NAME_MAXLEN];103 char *drv_name = NULL; 104 104 105 105 // Get driver name 106 int rc = async_string_receive( drv_name, DEVMAN_NAME_MAXLEN, NULL);106 int rc = async_string_receive(&drv_name, DEVMAN_NAME_MAXLEN, NULL); 107 107 if (rc != EOK) { 108 108 ipc_answer_0(iid, rc); … … 113 113 // Find driver structure 114 114 driver = find_driver(&drivers_list, drv_name); 115 116 free(drv_name); 117 drv_name = NULL; 118 115 119 if (NULL == driver) { 116 120 printf(NAME ": no driver named %s was found.\n", drv_name);
Note:
See TracChangeset
for help on using the changeset viewer.