<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/35bce54e2fac98a5bf16b25be2fc5b5f0ecc37e5">https://github.com/macports/macports-base/commit/35bce54e2fac98a5bf16b25be2fc5b5f0ecc37e5</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 35bce54e2fac98a5bf16b25be2fc5b5f0ecc37e5
</span>Author: Clemens Lang <cal@macports.org>
AuthorDate: Tue Oct 31 11:05:33 2023 +0100
<span style='display:block; white-space:pre;color:#404040;'> registry2.0: Fix typo in snapshot code
</span>---
src/registry2.0/snapshot.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/registry2.0/snapshot.c b/src/registry2.0/snapshot.c
</span><span style='display:block; white-space:pre;color:#808080;'>index da727b691..c9109a8cf 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/registry2.0/snapshot.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/registry2.0/snapshot.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -56,7 +56,7 @@ void delete_snapshot(ClientData clientData) {
</span> }
/*
<span style='display:block; white-space:pre;background:#ffe0e0;'>- * registry::snaphot create note
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * registry::snapshot create note
</span> * note is required
*/
static int snapshot_create(Tcl_Interp* interp, int objc, Tcl_Obj* CONST objv[]) {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -69,10 +69,10 @@ static int snapshot_create(Tcl_Interp* interp, int objc, Tcl_Obj* CONST objv[])
</span> } else {
char* note = Tcl_GetString(objv[2]);
reg_error error;
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reg_snapshot* new_snaphot = reg_snapshot_create(reg, note, &error);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (new_snaphot != NULL) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reg_snapshot* new_snapshot = reg_snapshot_create(reg, note, &error);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (new_snapshot != NULL) {
</span> Tcl_Obj* result;
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if (snapshot_to_obj(interp, &result, new_snaphot, NULL, &error)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (snapshot_to_obj(interp, &result, new_snapshot, NULL, &error)) {
</span> Tcl_SetObjResult(interp, result);
return TCL_OK;
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -82,7 +82,7 @@ static int snapshot_create(Tcl_Interp* interp, int objc, Tcl_Obj* CONST objv[])
</span> }
/*
<span style='display:block; white-space:pre;background:#ffe0e0;'>- * registry::snaphot get snapshot_id
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * registry::snapshot get snapshot_id
</span> * snapshot_id is required
*/
static int snapshot_get(Tcl_Interp* interp, int objc, Tcl_Obj* CONST objv[]) {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -108,7 +108,7 @@ static int snapshot_get(Tcl_Interp* interp, int objc, Tcl_Obj* CONST objv[]) {
</span> }
/*
<span style='display:block; white-space:pre;background:#ffe0e0;'>- * registry::snaphot get_last
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * registry::snapshot get_last
</span> */
static int snapshot_get_last(Tcl_Interp* interp, int objc, Tcl_Obj* CONST objv[]) {
reg_registry* reg = registry_for(interp, reg_attached);
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -140,7 +140,7 @@ static int snapshot_get_last(Tcl_Interp* interp, int objc, Tcl_Obj* CONST objv[]
</span> }
/*
<span style='display:block; white-space:pre;background:#ffe0e0;'>- * registry::snaphot get_all
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * registry::snapshot get_all
</span> */
static int snapshot_get_list(Tcl_Interp* interp, int objc, Tcl_Obj* CONST objv[]) {
reg_registry* reg = registry_for(interp, reg_attached);
</pre><pre style='margin:0'>
</pre>