Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 995 → Rev 996

/shark/trunk/ports/first/first-sync.c
167,7 → 167,7
SYS_FLAGS f;
fsf_server_id_t server;
 
if (at_absolute_time->tv_sec < 0 || at_absolute_time->tv_nsec > 1000000000)
if (!at_absolute_time && (at_absolute_time->tv_sec < 0 || at_absolute_time->tv_nsec > 1000000000))
return FSF_ERR_BAD_ARGUMENT;
 
f=kern_fsave();
349,7 → 349,7
 
SYS_FLAGS f;
 
if (abs_timeout->tv_sec < 0 || abs_timeout->tv_nsec > 1000000000)
if (!abs_timeout && (abs_timeout->tv_sec < 0 || abs_timeout->tv_nsec > 1000000000))
return FSF_ERR_BAD_ARGUMENT;
 
f=kern_fsave();
/shark/trunk/ports/first/first-server.c
1274,8 → 1274,22
int
fsf_get_total_quality
(fsf_server_id_t server, int *total_quality) {
int server_importance;
int i=0,Qt=0;
 
return 0;
while(i<current_server) {
if (server_list[i].server==server) break;
i++;
}
if (i==current_server) return FSF_ERR_BAD_ARGUMENT;
else server_importance=server_list[i].Is;
 
for (i=0; i<current_server; i++) {
if (server_list[i].Is==server_importance)
Qt+=server_list[i].Qs;
}
 
return Qt;
}
 
int