mirror of
https://github.com/0intro/wmii
synced 2025-01-11 20:59:20 +03:00
allow setting capacity to 0 (==infinity)
This commit is contained in:
parent
7e28da7db3
commit
ea20f48ed0
@ -1187,9 +1187,9 @@ xwrite(IXPConn *c, Fcall *fcall)
|
||||
return Enofile;
|
||||
memcpy(buf, fcall->data, fcall->count);
|
||||
buf[fcall->count] = 0;
|
||||
i = cext_strtonum(buf, 1, 0xffff, &err);
|
||||
i = cext_strtonum(buf, 0, 0xffff, &err);
|
||||
if(err)
|
||||
return "max value out of range 0x0001..0xffff";
|
||||
return "max value out of range 0x0000..0xffff";
|
||||
page[i1]->area[i2]->capacity = i;
|
||||
/* TODO: detach to many clients/attach */
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user