commit 45b73774db7347e94e5a3071b8f786e2374a0261 from: Stefan Sperling date: Mon Jun 04 20:34:08 2018 UTC rename got_object_idset_get_data() to got_object_idset_get() commit - d5a90aac91011cd4e3357e1bdcebf7449bb194c3 commit + 45b73774db7347e94e5a3071b8f786e2374a0261 blob - 129ff2f1e4d5e3fd3ae7f504dbfff91784669508 blob + 1c726ce309340e2b2f257183473fedbfde9852ea --- lib/got_lib_object_idset.h +++ lib/got_lib_object_idset.h @@ -21,8 +21,7 @@ void got_object_idset_free(struct got_object_idset *); const struct got_error *got_object_idset_add(void **, struct got_object_idset *, struct got_object_id *, void *); -void *got_object_idset_get_data(struct got_object_idset *, - struct got_object_id *); +void *got_object_idset_get(struct got_object_idset *, struct got_object_id *); const struct got_error *got_object_idset_remove(struct got_object_idset *, struct got_object_id *); int got_object_idset_contains(struct got_object_idset *, blob - 01dbf257444e2f6690714d0a03f14444f27388a7 blob + 3487cfbba9d65ce8edd1d7fb5cf626f3dc082dda --- lib/object_idset.c +++ lib/object_idset.c @@ -146,8 +146,7 @@ got_object_idset_add(void **existing_data, } void * -got_object_idset_get_data(struct got_object_idset *set, - struct got_object_id *id) +got_object_idset_get(struct got_object_idset *set, struct got_object_id *id) { struct got_object_idset_element *entry; uint8_t i = id->sha1[0]; blob - dceb48a72aaf2edfd8c60ccd3c8ffa92e53904df blob + 78476ec30e05779d3f631f32fc0b784df2d99d3c --- regress/idset/idset_test.c +++ regress/idset/idset_test.c @@ -149,15 +149,15 @@ idset_add_remove_iter(void) if (err) goto done; - if (got_object_idset_get_data(set, &id1) != (void *)data1) { + if (got_object_idset_get(set, &id1) != (void *)data1) { err = got_error(GOT_ERR_BAD_OBJ_DATA); goto done; } - if (got_object_idset_get_data(set, &id2) != (void *)data2) { + if (got_object_idset_get(set, &id2) != (void *)data2) { err = got_error(GOT_ERR_BAD_OBJ_DATA); goto done; } - if (got_object_idset_get_data(set, &id3) != (void *)data3) { + if (got_object_idset_get(set, &id3) != (void *)data3) { err = got_error(GOT_ERR_BAD_OBJ_DATA); goto done; } @@ -177,7 +177,7 @@ idset_add_remove_iter(void) err = got_error(GOT_ERR_BAD_OBJ_DATA); goto done; } - if (got_object_idset_get_data(set, &id2) != NULL) { + if (got_object_idset_get(set, &id2) != NULL) { err = got_error(GOT_ERR_BAD_OBJ_DATA); goto done; }