Changeset 94d484a in mainline for uspace/app/sbi/src/strtab.c
- Timestamp:
- 2010-03-07T17:45:33Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d0febca
- Parents:
- fa36f29
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/strtab.c
rfa36f29 r94d484a 37 37 #include <string.h> 38 38 #include "mytypes.h" 39 #include " compat.h"39 #include "os/os.h" 40 40 #include "list.h" 41 41 … … 59 59 while (node != NULL) { 60 60 ++sid; 61 if ( strcmp(str, list_node_data(node, char *)) == 0)61 if (os_str_cmp(str, list_node_data(node, char *)) == 0) 62 62 return sid; 63 63 … … 66 66 67 67 ++sid; 68 list_append(&str_list, strdup(str));68 list_append(&str_list, os_str_dup(str)); 69 69 70 70 return sid; … … 85 85 if (node == NULL) { 86 86 printf("Internal error: Invalid SID %d", sid); 87 exit(1);87 abort(); 88 88 } 89 89
Note:
See TracChangeset
for help on using the changeset viewer.