Diff for /freem/src/namespace.c between versions 1.2 and 1.5

version 1.2, 2025/03/09 15:20:18 version 1.5, 2025/04/09 19:52:02
Line 1 Line 1
 /*  /*
  *                            *   *   $Id$
  *                           * *  
  *                          *   *  
  *                     ***************  
  *                      * *       * *  
  *                       *  MUMPS  *  
  *                      * *       * *  
  *                     ***************  
  *                          *   *  
  *                           * *  
  *                            *  
  *  
  *   namespace.c  
  *    Namespace support   *    Namespace support
  *   *
  *     *  
  *   Author: Serena Willis <snw@coherent-logic.com>   *   Author: Serena Willis <snw@coherent-logic.com>
  *    Copyright (C) 1998 MUG Deutschland   *    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.   *   This file is part of FreeM.
Line 35 Line 23
  *   You should have received a copy of the GNU Affero Public License   *   You should have received a copy of the GNU Affero Public License
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.   *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *   *
    *   $Log$
    *   Revision 1.5  2025/04/09 19:52:02  snw
    *   Eliminate as many warnings as possible while building with -Wall
    *
    *   Revision 1.4  2025/04/02 03:02:42  snw
    *   Stop requiring users to pass -e to fmadm when -u or -g are passed
    *
    *   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 <stddef.h>  #include <stddef.h>
Line 64 Line 65
 #endif  #endif
   
 #define LOCK        'l'  #define LOCK        'l'
 #define ZDEALLOCATE 'D'  
   
 void ns_error(char *ns, char *e)  void ns_error(char *ns, char *e)
 {  {
Line 110  void set_namespace(char *ns, int verbose Line 110  void set_namespace(char *ns, int verbose
     /* turn off all the old so-called "journal" implementation */      /* turn off all the old so-called "journal" implementation */
     ug_buf[HOME][0] = EOL;      ug_buf[HOME][0] = EOL;
     jour_flag = 0;      jour_flag = 0;
     jourfile[0] = NUL;  
   
     /* the real journal file */      /* the real journal file */
     jour_file[0] = NUL;      jour_file[0] = NUL;
Line 247  jour_end: Line 246  jour_end:
     /* set up local engine */      /* set up local engine */
     for(i = 0; i < 256; i++) ns_buf[i] = NUL;      for(i = 0; i < 256; i++) ns_buf[i] = NUL;
   
     if(get_conf(ns, "local_engine", ns_buf) == TRUE) {      if(get_conf (ns, "local_engine", ns_buf) == TRUE) {
         sprintf(loc_engine, "%s", ns_buf);          snprintf (loc_engine, sizeof (loc_engine), "%s", ns_buf);
     }      }
     else {      else {
         sprintf(loc_engine, "BUILTIN");          sprintf (loc_engine, "BUILTIN");
     }      }
   
           

Removed from v.1.2  
changed lines
  Added in v.1.5


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>