Changeset 6453e306 in mainline for uspace/app/hdisk/func_none.c


Ignore:
Timestamp:
2013-12-25T16:09:43Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ac36aed
Parents:
d51beba3
Message:

basic code review and coding style cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/hdisk/func_none.c

    rd51beba3 r6453e306  
    11/*
    2  * Copyright (c) 2012, 2013 Dominik Taborsky
     2 * Copyright (c) 2012-2013 Dominik Taborsky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29  /** @addtogroup hdisk
     29/** @addtogroup hdisk
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 
    3635#include <errno.h>
    37 
    3836#include "func_none.h"
    3937
    4038static void not_implemented(void);
    41 
    4239
    4340int construct_none_label(label_t *this)
     
    4542        this->layout = LYT_NONE;
    4643       
    47         this->add_part      = add_none_part;
    48         this->delete_part   = delete_none_part;
     44        this->add_part = add_none_part;
     45        this->delete_part = delete_none_part;
    4946        this->destroy_label = destroy_none_label;
    50         this->new_label     = new_none_label;
    51         this->print_parts   = print_none_parts;
    52         this->read_parts    = read_none_parts;
    53         this->write_parts   = write_none_parts;
    54         this->extra_funcs   = extra_none_funcs;
     47        this->new_label = new_none_label;
     48        this->print_parts = print_none_parts;
     49        this->read_parts = read_none_parts;
     50        this->write_parts = write_none_parts;
     51        this->extra_funcs = extra_none_funcs;
    5552       
    5653        return EOK;
    5754}
    5855
    59 int add_none_part(label_t *this, tinput_t * in)
     56int add_none_part(label_t *this, tinput_t *in)
    6057{
    6158        not_implemented();
     
    6360}
    6461
    65 int delete_none_part(label_t *this, tinput_t * in)
     62int delete_none_part(label_t *this, tinput_t *in)
    6663{
    6764        not_implemented();
     
    104101}
    105102
    106 static void not_implemented()
     103static void not_implemented(void)
    107104{
    108105        printf("No format selected.\n");
Note: See TracChangeset for help on using the changeset viewer.