MEDIUM: channel: adapt to the new buffer API

Also, ci_swpbuf() was removed (unused).
2 files changed