Diff for /freem/src/log.c between versions 1.4 and 1.5

version 1.4, 2025/03/09 19:50:47 version 1.5, 2025/04/01 20:11:46
Line 24 Line 24
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.   *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *   *
  *   $Log$   *   $Log$
    *   Revision 1.5  2025/04/01 20:11:46  snw
    *   Further work on fmadm
    *
  *   Revision 1.4  2025/03/09 19:50:47  snw   *   Revision 1.4  2025/03/09 19:50:47  snw
  *   Second phase of REUSE compliance and header reformat   *   Second phase of REUSE compliance and header reformat
  *   *
Line 44 Line 47
 void m_log (int level, const char *msg)  void m_log (int level, const char *msg)
 {  {
   
       FILE *fp;
       fp = fopen ("/tmp/freem.log", "w+");
       
 #if defined(__linux__) | defined(__FreeBSD__) | defined(__sun__)  #if defined(__linux__) | defined(__FreeBSD__) | defined(__sun__)
         syslog (level, "%s", msg);      syslog (level, "%s", msg);
 #endif  #endif
       fprintf (fp, "%s\n", msg);
   
       fclose (fp);
           
 }  }

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


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