--- freem/src/ssvn_lock.c 2025/01/19 02:04:04 1.1.1.1 +++ freem/src/ssvn_lock.c 2025/04/10 01:24:39 1.5 @@ -1,23 +1,11 @@ /* - * * - * * * - * * * - * *************** - * * * * * - * * MUMPS * - * * * * * - * *************** - * * * - * * * - * * - * - * ssvn_lock.c - * ^$LOCK ssv + * $Id: ssvn_lock.c,v 1.5 2025/04/10 01:24:39 snw Exp $ + * ^$LOCK ssvn * * - * Author: Serena Willis + * Author: Serena Willis * Copyright (C) 1998 MUG Deutschland - * Copyright (C) 2020 Coherent Logic Development LLC + * Copyright (C) 2020, 2025 Coherent Logic Development LLC * * * This file is part of FreeM. @@ -35,6 +23,16 @@ * You should have received a copy of the GNU Affero Public License * along with FreeM. If not, see . * + * $Log: ssvn_lock.c,v $ + * Revision 1.5 2025/04/10 01:24:39 snw + * Remove C++ style comments + * + * Revision 1.4 2025/03/09 19:50:47 snw + * Second phase of REUSE compliance and header reformat + * + * + * SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC + * SPDX-License-Identifier: AGPL-3.0-or-later **/ #include @@ -69,9 +67,6 @@ void ssvn_lock_add(char *key, pid_t owne internal_to_mref (r, key); mref_to_external (r, t_buf); - //printf ("key = '%s'\r\n", key); - //printf ("r = '%s'\r\n", t_buf); - for (i = 0; i < strlen (t_buf); i++) { if (t_buf[i] == '\001') { @@ -82,7 +77,7 @@ void ssvn_lock_add(char *key, pid_t owne } snprintf (k_buf, STRLEN - 1, "^$LOCK\202%s\201", t_buf); - snprintf (d_buf, STRLEN - 1, "%ld,%d\201\0", owner_job, count); + snprintf (d_buf, STRLEN - 1, "%ld,%d\201\0", (long) owner_job, count); symtab_shm (set_sym, k_buf, d_buf); @@ -141,7 +136,7 @@ void ssvn_lock(short action, char *key, case set_sym: case kill_sym: - //TODO: remove lock + /* TODO: remove lock */ merr_raise (M29); return;