Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2934 → Rev 2933

/trunk/kernel/generic/src/ipc/sysipc.c
243,7 → 243,7
uintptr_t dst = IPC_GET_ARG1(*olddata);
size_t max_size = IPC_GET_ARG2(*olddata);
size_t size = IPC_GET_ARG2(answer->data);
if (size && size <= max_size) {
if (size <= max_size) {
/*
* Copy the destination VA so that this piece of
* information is not lost.
258,8 → 258,6
free(answer->buffer);
answer->buffer = NULL;
}
} else if (!size) {
IPC_SET_RETVAL(answer->data, EOK);
} else {
IPC_SET_RETVAL(answer->data, ELIMIT);
}
/trunk/uspace/app/tester/vfs/vfs1.c
86,14 → 86,13
 
char buf[10];
 
while ((cnt = read(fd0, buf, sizeof(buf)))) {
if (cnt < 0)
return "read() failed.\n";
if (!quiet)
printf("read %d bytes: \"%.*s\", fd=%d\n", cnt, cnt,
buf, fd0);
}
cnt = read(fd0, buf, sizeof(buf));
if (cnt < 0)
return "read() failed.\n";
 
if (!quiet)
printf("read %d bytes: \"%.*s\", fd=%d\n", cnt, cnt, buf, fd0);
 
close(fd0);
 
DIR *dirp;