Changes in uspace/lib/label/test/label.c [b7fd2a0:5772aa1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/label/test/label.c
rb7fd2a0 r5772aa1 37 37 PCUT_TEST_SUITE(label); 38 38 39 static errno_t label_test_get_bsize(void *, size_t *);40 static errno_t label_test_get_nblocks(void *, aoff64_t *);41 static errno_t label_test_read(void *, aoff64_t, size_t, void *);42 static errno_t label_test_write(void *, aoff64_t, size_t, const void *);39 static int label_test_get_bsize(void *, size_t *); 40 static int label_test_get_nblocks(void *, aoff64_t *); 41 static int label_test_read(void *, aoff64_t, size_t, void *); 42 static int label_test_write(void *, aoff64_t, size_t, const void *); 43 43 44 44 label_bd_ops_t label_test_ops = { … … 67 67 * @param rbd Place to store pointer to new pretended block device 68 68 */ 69 static errno_t test_bd_create(size_t bsize, aoff64_t nblocks, test_bd_t **rbd)69 static int test_bd_create(size_t bsize, aoff64_t nblocks, test_bd_t **rbd) 70 70 { 71 71 test_bd_t *bd; … … 99 99 100 100 /** Get block size wrapper for liblabel */ 101 static errno_t label_test_get_bsize(void *arg, size_t *bsize)101 static int label_test_get_bsize(void *arg, size_t *bsize) 102 102 { 103 103 test_bd_t *bd = (test_bd_t *)arg; … … 108 108 109 109 /** Get number of blocks wrapper for liblabel */ 110 static errno_t label_test_get_nblocks(void *arg, aoff64_t *nblocks)110 static int label_test_get_nblocks(void *arg, aoff64_t *nblocks) 111 111 { 112 112 test_bd_t *bd = (test_bd_t *)arg; … … 117 117 118 118 /** Read blocks wrapper for liblabel */ 119 static errno_t label_test_read(void *arg, aoff64_t ba, size_t cnt, void *buf)119 static int label_test_read(void *arg, aoff64_t ba, size_t cnt, void *buf) 120 120 { 121 121 test_bd_t *bd = (test_bd_t *)arg; … … 129 129 130 130 /** Write blocks wrapper for liblabel */ 131 static errno_t label_test_write(void *arg, aoff64_t ba, size_t cnt, const void *data)131 static int label_test_write(void *arg, aoff64_t ba, size_t cnt, const void *data) 132 132 { 133 133 test_bd_t *bd = (test_bd_t *)arg; … … 146 146 label_part_t *part; 147 147 test_bd_t *bd = NULL; 148 errno_t rc;148 int rc; 149 149 150 150 rc = test_bd_create(test_block_size, test_nblocks, &bd); … … 181 181 label_part_t *part; 182 182 test_bd_t *bd = NULL; 183 errno_t rc;183 int rc; 184 184 185 185 rc = test_bd_create(test_block_size, test_nblocks, &bd); … … 242 242 label_part_t *part; 243 243 test_bd_t *bd = NULL; 244 errno_t rc;244 int rc; 245 245 246 246 rc = test_bd_create(test_block_size, test_nblocks, &bd); … … 304 304 label_ptype_t ptype; 305 305 test_bd_t *bd = NULL; 306 errno_t rc;306 int rc; 307 307 308 308 rc = test_bd_create(test_block_size, test_nblocks, &bd); … … 393 393 label_part_info_t pinfo, lpinfo, epinfo; 394 394 test_bd_t *bd = NULL; 395 errno_t rc;395 int rc; 396 396 397 397 rc = test_bd_create(test_block_size, test_nblocks, &bd); … … 531 531 label_ptype_t ptype; 532 532 test_bd_t *bd = NULL; 533 errno_t rc;533 int rc; 534 534 535 535 rc = test_bd_create(test_block_size, test_nblocks, &bd);
Note:
See TracChangeset
for help on using the changeset viewer.