Subversion Repositories svn1

Rev

Rev 158 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 158 Rev 170
Line 35... Line 35...
35
#endif
35
#endif
36
 
36
 
37
#include    "consts.h"
37
#include    "consts.h"
38
#include    "structs.h"
38
#include    "structs.h"
39
#include    "proto.h"
39
#include    "proto.h"
-
 
40
#include    "mainwindow.h"
-
 
41
 
40
int         team;                                /* Current team number */
42
//int         team;                                /* Current team number */
41
team_type   team_buf;                            /* Holds team data currently under display */
43
//team_type   team_buf;                            /* Holds team data currently under display */
42
int         team_fd;                             /* Team data file descriptor */
44
int         team_fd;                             /* Team data file descriptor */
43
int         leg = 0;                             /* Leg under investigation */
45
//int         leg = 0;                             /* Leg under investigation */
44
 
46
 
45
/*========================================================================
47
/*========================================================================
46
 *
48
 *
47
 *  Update team data on the screen
49
 *  Update team data on the screen
48
 *
50
 *
Line 787... Line 789...
787
    pos *= sizeof( team_type );
789
    pos *= sizeof( team_type );
788
    lseek( team_fd, pos, 0 );
790
    lseek( team_fd, pos, 0 );
789
    len = write( team_fd, ( char * ) data, sizeof( team_type ) );
791
    len = write( team_fd, ( char * ) data, sizeof( team_type ) );
790
    if( len != sizeof( team_type ) )
792
    if( len != sizeof( team_type ) )
791
    {
793
    {
792
        perror( "Team record write" );
794
        //perror( "Team record write" );
793
        sleep( 5 );
795
        MainWindow::showMessage("Error Team record write");
794
    }
796
    }
795
    return ( len == sizeof( team_type ) );
797
    return ( len == sizeof( team_type ) );
796
}
798
}
797
 
799
 
798
/*========================================================================
800
/*========================================================================