comparison src/X_supp.c @ 1002:aa0583e0a96b refine_backend_if

Fix typo for the naem of struct _X_supp_IO_man
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 22 Nov 2010 00:42:30 +0800
parents b462b9e213e8
children 4b1bef7e5516
comparison
equal deleted inserted replaced
1001:b462b9e213e8 1002:aa0583e0a96b
214 } 214 }
215 215
216 static int 216 static int
217 _x_supp_io_man_reg(struct _mb_IO_man *io_man, 217 _x_supp_io_man_reg(struct _mb_IO_man *io_man,
218 int fd, MB_IO_TYPE type, mb_IO_cb_t cb, void *data) { 218 int fd, MB_IO_TYPE type, mb_IO_cb_t cb, void *data) {
219 struct _x_supp_io_man *xmb_io_man = (struct _x_supp_io_man *)io_man; 219 struct _X_supp_IO_man *xmb_io_man = (struct _X_supp_IO_man *)io_man;
220 int i; 220 int i;
221 221
222 for(i = 0; i < xmb_io_man->n_monitor; i++) { 222 for(i = 0; i < xmb_io_man->n_monitor; i++) {
223 if (xmb_io_man->monitors[i].type == MB_IO_DUMMY) 223 if (xmb_io_man->monitors[i].type == MB_IO_DUMMY)
224 break; 224 break;
236 return i - 1; 236 return i - 1;
237 } 237 }
238 238
239 static void 239 static void
240 _x_supp_io_man_unreg(struct _mb_IO_man *io_man, int io_hdl) { 240 _x_supp_io_man_unreg(struct _mb_IO_man *io_man, int io_hdl) {
241 struct _x_supp_io_man *xmb_io_man = (struct _x_supp_io_man *)io_man; 241 struct _X_supp_IO_man *xmb_io_man = (struct _X_supp_IO_man *)io_man;
242 242
243 ASSERT(io_hdl < xmb_io_man->n_monitor); 243 ASSERT(io_hdl < xmb_io_man->n_monitor);
244 xmb_io_man->monitors[io_hdl].type = MB_IO_DUMMY; 244 xmb_io_man->monitors[io_hdl].type = MB_IO_DUMMY;
245 } 245 }
246 246