Changeset 822d22a in mainline


Ignore:
Timestamp:
2009-09-01T19:09:48Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
440b0ce
Parents:
00b1d20e
Message:

Small fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/part/mbr_part/mbr_part.c

    r00b1d20e r822d22a  
    4343
    4444#include <stdio.h>
     45#include <stdlib.h>
    4546#include <unistd.h>
    4647#include <ipc/ipc.h>
     
    132133{
    133134        printf(NAME ": PC MBR partition driver\n");
    134         printf(NAME ": Size of br_block_t = %d\n", sizeof(br_block_t));
    135135
    136136        if (argc != 2) {
     
    202202
    203203                asprintf(&name, "%sp%d", dev_name, i);
     204                if (name == NULL)
     205                        return ENOMEM;
     206
    204207                rc = devmap_device_register(name, &dev);
    205208                if (rc != EOK) {
     
    215218
    216219                primary[i].dev = dev;
     220                free(name);
    217221        }
    218222
     
    252256                primary[i].dev = 0;
    253257        }
     258
     259        return EOK;
    254260}
    255261
Note: See TracChangeset for help on using the changeset viewer.