--- freem/src/transact.c 2025/02/25 18:29:31 1.2 +++ freem/src/transact.c 2025/04/09 19:52:02 1.7 @@ -1,23 +1,11 @@ /* - * * - * * * - * * * - * *************** - * * * * * - * * MUMPS * - * * * * * - * *************** - * * * - * * * - * * - * - * transact.c + * $Id: transact.c,v 1.7 2025/04/09 19:52:02 snw Exp $ * FreeM transaction processing support * * - * 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,22 @@ * You should have received a copy of the GNU Affero Public License * along with FreeM. If not, see . * + * $Log: transact.c,v $ + * Revision 1.7 2025/04/09 19:52:02 snw + * Eliminate as many warnings as possible while building with -Wall + * + * Revision 1.6 2025/03/24 04:13:12 snw + * Replace action macro dat with fra_dat to avoid symbol conflict on OS/2 + * + * Revision 1.5 2025/03/24 02:54:47 snw + * Transaction compat fixes for OS/2 + * + * 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 @@ -55,7 +59,7 @@ #define FALSE 0 #define TRUE 1 -#if !defined(__OpenBSD__) && !defined(__APPLE__) +#if !defined(__OpenBSD__) && !defined(__APPLE__) && !defined(__OS2__) union semun { int val; /* Value for SETVAL */ struct semid_ds *buf; /* Buffer for IPC_STAT, IPC_SET */ @@ -76,7 +80,6 @@ tp_transaction transactions[TP_MAX_NEST] void tp_init(void) { union semun arg; - char err[255]; key_t tp_sk; tp_sk = ftok (config_file, 4); @@ -495,7 +498,7 @@ void tp_get_op_name(char *buf, const sho strcpy (buf, "GET"); break; - case dat: + case fra_dat: strcpy (buf, "$DATA"); break;