--- freem/src/ssvn_zrpi.c 2025/01/19 02:04:04 1.1 +++ freem/src/ssvn_zrpi.c 2025/04/09 19:52:02 1.4 @@ -1,23 +1,11 @@ /* - * * - * * * - * * * - * *************** - * * * * * - * * MUMPS * - * * * * * - * *************** - * * * - * * * - * * - * - * ssvn_zrpi.c + * $Id: ssvn_zrpi.c,v 1.4 2025/04/09 19:52:02 snw Exp $ * Support for Raspberry Pi single-board computers * * - * 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 General Public License * along with FreeM. If not, see . * + * $Log: ssvn_zrpi.c,v $ + * Revision 1.4 2025/04/09 19:52:02 snw + * Eliminate as many warnings as possible while building with -Wall + * + * Revision 1.3 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 @@ -53,10 +51,10 @@ int rpi_pinmode[RPI_PINCOUNT]; void ssvn_zrpi_init (void) { + +#if defined(HAVE_WIRINGPI_H) register int i; -#if defined(HAVE_WIRINGPI_H) - wiringPiSetup (); for (i = 0; i < RPI_PINCOUNT; i++) { @@ -65,13 +63,11 @@ void ssvn_zrpi_init (void) } #endif - + return; } void ssvn_zrpi (short action, char *key, char *data) { - int pin; - freem_ref_t *ref = (freem_ref_t *) malloc (sizeof (freem_ref_t)); char *kbuf = (char *) malloc (STRLEN * sizeof (char)); char *verb = (char *) malloc (STRLEN * sizeof (char));