diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-09-27 17:23:13 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-09-27 23:39:35 +0200 |
commit | fcf89e5bb006f71ecf5c46b7248216c3dee7e4b8 (patch) | |
tree | a69cbaa58141276aaf062a0ce76c7623cb77f9c0 /nfs/mount.h | |
parent | 65e63be1f4884a0223fe51ac6ff53ed11605506a (diff) |
trans/proxy-defpager: convert to trivfs dynamic classes and buckets
libtrivfs contains two ways of managing more than one port class and
bucket. There is the old way of using a statically allocated array
with explicit length, and the new way with dynamically allocated
vectors.
Converting all users to the new way of handling multiple classes
and/or buckets, we can simplify the code in libtrivfs. In many cases,
the code will be simpler and more expressive for the user.
This also fixes a severe bug. As no classes are given to
`trivfs_startup', they are created and inserted into the dynamic
vector of classes. The helper function `allowed', however, used the
first item of the previously used static array, which is NULL. This
circumvented the typecheck, allowing the default pager protocol to be
spoken over control ports, likely resulting in a crash.
* trans/proxy-defpager.c: Convert to dynamic classes and buckets.
Diffstat (limited to 'nfs/mount.h')
0 files changed, 0 insertions, 0 deletions