Changeset 6efec7e3 in mainline for uspace/srv/sysman/main.c


Ignore:
Timestamp:
2019-08-03T07:38:34Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
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)
Message:

Unit polymorphism (simple mount), debug logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/sysman/main.c

    r4fe7fcb r6efec7e3  
    44#include <stddef.h>
    55#include <stdio.h>
     6#include <str.h>
    67
    78#include "configuration.h"
     
    2122        /*
    2223         * Build hard coded configuration.
     24         *
     25         * Strings are allocated on heap, so that they can be free'd by an
     26         * owning unit.
    2327         */
    2428        int result = EOK;
     
    3337        }
    3438        // 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");
    3842
    3943        cfg_init = unit_create(UNIT_CONFIGURATION);
     
    4246                goto fail;
    4347        }
    44         cfg_init->data.cfg.path = "/cfg/";
     48        cfg_init->data.cfg.path = str_dup("/cfg/");
    4549       
    4650        tgt_default = unit_create(UNIT_TARGET);
Note: See TracChangeset for help on using the changeset viewer.