Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4573 → Rev 4572

/trunk/uspace/app/tetris/scores.c
202,7 → 202,7
size_t cnt;
int rc;
 
f = fopen("/data/tetris.sco", "rb");
f = fopen("/tetris.sco", "rb");
if (f == NULL)
return ENOENT;
 
221,7 → 221,7
size_t cnt;
int rc;
 
f = fopen("/data/tetris.sco", "wb");
f = fopen("/tetris.sco", "wb");
cnt = fwrite(scores, sizeof(struct highscore), NUMSPOTS, f);
rc = fclose(f);
 
/trunk/uspace/app/init/init.c
150,20 → 150,6
}
}
 
void mount_data(void)
{
int rc;
 
printf("Trying to mount disk0 on /data... ");
fflush(stdout);
 
rc = mount("fat", "/data", "disk0", "wtcache", 0);
if (rc == EOK)
printf("OK\n");
else
printf("Failed\n");
}
 
int main(int argc, char *argv[])
{
info_print();
185,12 → 171,7
spawn("/srv/console");
spawn("/srv/fhc");
spawn("/srv/obio");
spawn("/srv/ata_bd");
spawn("/srv/gxe_bd");
 
usleep(250000);
mount_data();
 
getvc("vc0", "/app/bdsh");
getvc("vc1", "/app/bdsh");
getvc("vc2", "/app/bdsh");