[BACK]Return to map.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tset

Diff for /src/usr.bin/tset/Attic/map.c between version 1.3 and 1.4

version 1.3, 1997/01/17 07:13:43 version 1.4, 1997/07/25 22:13:23
Line 46 
Line 46 
 #include <errno.h>  #include <errno.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
   #include <err.h>
 #include "extern.h"  #include "extern.h"
   
 int     baudrate __P((char *));  int     baudrate __P((char *));
Line 83 
Line 84 
         copy = strdup(arg);          copy = strdup(arg);
         mapp = malloc((u_int)sizeof(MAP));          mapp = malloc((u_int)sizeof(MAP));
         if (copy == NULL || mapp == NULL)          if (copy == NULL || mapp == NULL)
                 err("%s", strerror(errno));                  err(1, "malloc");
         mapp->next = NULL;          mapp->next = NULL;
         if (maplist == NULL)          if (maplist == NULL)
                 cur = maplist = mapp;                  cur = maplist = mapp;
Line 159 
Line 160 
         /* If user specified a port with an option flag, set it. */          /* If user specified a port with an option flag, set it. */
 done:   if (port) {  done:   if (port) {
                 if (mapp->porttype)                  if (mapp->porttype)
 badmopt:                err("illegal -m option format: %s", copy);  badmopt:                errx(1, "illegal -m option format: %s", copy);
                 mapp->porttype = port;                  mapp->porttype = port;
         }          }
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4