Subversion Repositories HelenOS

Rev

Rev 3685 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3685 Rev 3846
Line 34... Line 34...
34
 */
34
 */
35
 
35
 
36
#include <async.h>
36
#include <async.h>
37
#include <stdio.h>
37
#include <stdio.h>
38
#include <task.h>
38
#include <task.h>
-
 
39
 
39
#include <ipc/ipc.h>
40
#include <ipc/ipc.h>
40
#include <ipc/services.h>
41
#include <ipc/services.h>
41
 
42
 
42
#include "../err.h"
43
#include "../err.h"
43
#include "../messages.h"
44
#include "../messages.h"
Line 62... Line 63...
62
        printf( "\n" NAME "Could not spawn networking" );
63
        printf( "\n" NAME "Could not spawn networking" );
63
        return EINVAL;
64
        return EINVAL;
64
    }
65
    }
65
    // start networking
66
    // start networking
66
    networking_phone = connect_to_service( SERVICE_NETWORKING );
67
    networking_phone = connect_to_service( SERVICE_NETWORKING );
67
    if( ERROR_OCCURED( ipc_call_sync_0_0( networking_phone, NET_NETWORKING_STARTUP ))){
68
    if( ERROR_OCCURED( ipc_call_sync_0_0( networking_phone, NET_NET_STARTUP ))){
68
        printf( "\n" NAME " - ERROR %d\n", ERROR_CODE );
69
        printf( "\n" NAME " - ERROR %d\n", ERROR_CODE );
69
        return ERROR_CODE;
70
        return ERROR_CODE;
70
    }
71
    }
71
    printf( "\n" NAME " - OK\n" );
72
    printf( "\n" NAME " - OK\n" );
72
    return EOK;
73
    return EOK;