Subject: newsyslog portability fixes
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu>
From: Luke Mewburn <lm@rmit.edu.au>
List: netbsd-bugs
Date: 02/07/1994 17:17:43
DESCRIPTION:
2 minor portability fixes for usr.bin/newsyslog. Makes the code
easier to compile on other systems.  (I don't have send-pr up &
running yet, so that's why it's in this format.)

PRIORITY:
low


--
*** newsyslog.c.orig	Mon Feb  7 17:13:55 1994
--- newsyslog.c	Mon Feb  7 17:14:07 1994
***************
*** 46,52 ****
  #endif
  
  #include <stdio.h>
! #include <strings.h>
  #include <ctype.h>
  #include <signal.h>
  #include <pwd.h>
--- 46,52 ----
  #endif
  
  #include <stdio.h>
! #include <string.h>
  #include <ctype.h>
  #include <signal.h>
  #include <pwd.h>
***************
*** 257,263 ****
  
                  q = parse = missing_field(sob(++parse),errline);
                  *(parse = son(parse)) = '\0';
!                 if ((group = index(q, '.')) != NULL) {
                      *group++ = '\0';
                      if (*q) {
                          if (!(isnumber(q))) {
--- 257,263 ----
  
                  q = parse = missing_field(sob(++parse),errline);
                  *(parse = son(parse)) = '\0';
!                 if ((group = strchr(q, '.')) != NULL) {
                      *group++ = '\0';
                      if (*q) {
                          if (!(isnumber(q))) {
--

-- 
``Concealment is never as hard as people think, you          Luke Mewburn
  must understand that. It's action while hiding that's    <lm@rmit.edu.au>
  the hard part''
        -- Coyote, in Kim Stanley Robinson's `Green Mars'

------------------------------------------------------------------------------