Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 2008 22:43:25 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/chat chat.c
Message-ID:  <200804102243.m3AMhPMn047925@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
delphij     2008-04-10 22:43:25 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    usr.bin/chat         chat.c 
  Log:
  MFC revision 1.22
  date: 2008/03/07 00:01:19;  author: delphij;  state: Exp;  lines: +61 -68
  Merge revisions 1.10 and 1.11 from DragonFly:
  
   - Use real getopt() handling instead of the hand-rolled and
     IOCCC-worthy "Micro getopt()" macros, plus clean up to the
     option handling code:
      * Sort the options in the switch statement;
      * Plug piddling memory leaks when processing repeated options
        by freeing strings before allocating them for a second time;
      * Die with a fatal error if the requested report file cannot
        be opened for appending;
      * Don't call init() before usage() (to prevent the usage
        message being mangled by changes to the terminal settings;)
   - Clean up the usage message, both in usage() and in the main
     program comment, both stylistically (sort and combine options)
     and for accuracy (following the manual page, make note of the -s
     and -S flags, and use the term 'send' instead of 'say' to reduce
     confusion (SAY is the name of a command for output to the user,
     not the connection.))
  
  Obtained from:  DragonFly
  
  Revision   Changes    Path
  1.21.20.1  +61 -68    src/usr.bin/chat/chat.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804102243.m3AMhPMn047925>