Changeset 6efec7e3 in mainline for uspace/srv/sysman/main.c
- Timestamp:
- 2019-08-03T07:38:34Z (5 years ago)
- Children:
- 59ba708
- Parents:
- 4fe7fcb
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-03-17 19:54:13)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-03 07:38:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/main.c
r4fe7fcb r6efec7e3 4 4 #include <stddef.h> 5 5 #include <stdio.h> 6 #include <str.h> 6 7 7 8 #include "configuration.h" … … 21 22 /* 22 23 * Build hard coded configuration. 24 * 25 * Strings are allocated on heap, so that they can be free'd by an 26 * owning unit. 23 27 */ 24 28 int result = EOK; … … 33 37 } 34 38 // TODO Use RDFMT 35 mnt_initrd->data.mnt.type = "ext4fs";36 mnt_initrd->data.mnt.mountpoint = "/";37 mnt_initrd->data.mnt.device = "bd/initrd";39 mnt_initrd->data.mnt.type = str_dup("ext4fs"); 40 mnt_initrd->data.mnt.mountpoint = str_dup("/"); 41 mnt_initrd->data.mnt.device = str_dup("bd/initrd"); 38 42 39 43 cfg_init = unit_create(UNIT_CONFIGURATION); … … 42 46 goto fail; 43 47 } 44 cfg_init->data.cfg.path = "/cfg/";48 cfg_init->data.cfg.path = str_dup("/cfg/"); 45 49 46 50 tgt_default = unit_create(UNIT_TARGET);
Note:
See TracChangeset
for help on using the changeset viewer.