Changeset 24ab58b3 in mainline for uspace/srv/net/netstart/netstart.c


Ignore:
Timestamp:
2010-04-06T11:41:48Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
14f1db0
Parents:
4dd8529
Message:

more compact network startup messages (usually one line instead of multiple lines)
pass module name as an argument to nil_message() and friends
deeper cstyle changes (replace forward prototypes with proper extern declarations and static functions, change doxygen comments, stick more closely to the 80-column rule, no argument names in header files, spacing, comments, etc.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/netstart/netstart.c

    r4dd8529 r24ab58b3  
    7979}
    8080
    81 /** Network startup entry point.
    82  *
    83  * @param[in] argc The number of command line parameters.
    84  * @param[in] argv The command line parameters.
    85  *
    86  * @returns EOK on success.
    87  * @returns EINVAL if the net module cannot be started.
    88  * @returns Other error codes as defined for the self_test() function.
    89  * @returns Other error codes as defined for the NET_NET_STARTUP message.
    90  *
    91  */
    9281int main(int argc, char *argv[])
    9382{
     
    10594        int net_phone = connect_to_service(SERVICE_NETWORKING);
    10695        if (ERROR_OCCURRED(ipc_call_sync_0_0(net_phone, NET_NET_STARTUP))) {
    107                 fprintf(stderr, "%s: Networking error %d\n", NAME, ERROR_CODE);
     96                fprintf(stderr, "%s: Startup error %d\n", NAME, ERROR_CODE);
    10897                return ERROR_CODE;
    10998        }
Note: See TracChangeset for help on using the changeset viewer.