commit 90dfaa0114b254eff2147735ed23dca09b571635 from: Stefan Sperling date: Mon Mar 11 10:24:25 2024 UTC rename function commit - c42b7609faa2e9d1f7c0a1b59fe2303f05ddaa22 commit + 90dfaa0114b254eff2147735ed23dca09b571635 blob - 00e51397517abfc6beb72abdf282b49321818416 blob + d62256a1b20427e1dd67b05242a133f23a7ee0ea --- gotd/session.c +++ gotd/session.c @@ -421,7 +421,7 @@ validate_namespace(const char *namespace) } static const struct got_error * -prepare_notification(struct got_object_id *old_id, struct got_object_id *new_id, +queue_notification(struct got_object_id *old_id, struct got_object_id *new_id, struct got_repository *repo, struct got_reference *ref) { const struct got_error *err = NULL; @@ -637,7 +637,7 @@ update_ref(int *shut, struct gotd_session_client *clie err = got_ref_write(ref, repo); /* will lock/unlock */ if (err) goto done; - err = prepare_notification(NULL, &new_id, repo, ref); + err = queue_notification(NULL, &new_id, repo, ref); if (err) goto done; } else { @@ -679,7 +679,7 @@ update_ref(int *shut, struct gotd_session_client *clie err = got_ref_delete(ref, repo); if (err) goto done; - err = prepare_notification(&old_id, NULL, repo, ref); + err = queue_notification(&old_id, NULL, repo, ref); if (err) goto done; free(id); @@ -713,7 +713,7 @@ update_ref(int *shut, struct gotd_session_client *clie err = got_ref_write(ref, repo); if (err) goto done; - err = prepare_notification(&old_id, &new_id, repo, ref); + err = queue_notification(&old_id, &new_id, repo, ref); if (err) goto done; }