Changeset 9d28b9c in mainline


Ignore:
Timestamp:
2010-01-04T17:44:28Z (14 years ago)
Author:
Lukas Mejdrech <lukas@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
daecfed3
Parents:
2d68c72
Message:
  • nettest[12] default datagram size corresponds to the pattern, * nettest[12] output placement fix
Location:
uspace/srv/net/app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/app/nettest1/nettest1.c

    r2d68c72 r9d28b9c  
    244244                        return socket_ids[ index ];
    245245                }
    246                 if( verbose ) print_mark( index );
     246                if( verbose ){
     247                        print_mark( index );
     248                }
    247249        }
    248250        return EOK;
     
    366368        ERROR_DECLARE;
    367369
    368         size_t                          size                    = 28;
     370        size_t                          size                    = 27;
    369371        int                                     verbose                 = 0;
    370372        sock_type_t                     type                    = SOCK_DGRAM;
  • uspace/srv/net/app/nettest2/nettest2.c

    r2d68c72 r9d28b9c  
    366366        ERROR_DECLARE;
    367367
    368         size_t                          size                    = 29;
     368        size_t                          size                    = 28;
    369369        int                                     verbose                 = 0;
    370370        sock_type_t                     type                    = SOCK_DGRAM;
     
    507507
    508508        ERROR_PROPAGATE( sockets_create( verbose, socket_ids, sockets, family, type ));
     509
    509510        if( type == SOCK_STREAM ){
    510511                ERROR_PROPAGATE( sockets_connect( verbose, socket_ids, sockets, address, addrlen ));
    511512        }
     513
     514        if( verbose ) printf( "\n" );
    512515
    513516        if( ERROR_OCCURRED( gettimeofday( & time_before, NULL ))){
     
    546549        ERROR_PROPAGATE( sockets_close( verbose, socket_ids, sockets ));
    547550
    548         if( verbose ) printf( "Exiting\n" );
     551        if( verbose ) printf( "\nExiting\n" );
    549552
    550553        return EOK;
Note: See TracChangeset for help on using the changeset viewer.