cvs commit: src/bin/ed buf.c cbc.c ed.h glbl.c io.c main.c re.c sub.c undo.c

Peter Avalos pavalos at crater.dragonflybsd.org
Fri Apr 6 16:38:49 PDT 2007


pavalos     2007/04/06 16:36:55 PDT

DragonFly src repository

  Modified files:
    bin/ed               buf.c cbc.c ed.h glbl.c io.c main.c re.c 
                         sub.c undo.c 
  Log:
  Sync with FreeBSD.
  
  File positions are off_t nowdays, not long, so:
    fseek -> fseeko
  
  Make errmsg a const, so we can just set error messages instead
    of using sprintf/strcpy.
  
  proper parens mean that fd is always set by open(2) [in any part of C],
  and so we can accurately check for it returning -1, without feeling like
  we need to initialize fd to -1 in its declaration.
  
  Remove some #ifdef sun.
  
  Sprinkle const.
  
  Revision  Changes    Path
  1.4       +17 -17    src/bin/ed/buf.c
  1.10      +6 -2      src/bin/ed/cbc.c
  1.9       +75 -82    src/bin/ed/ed.h
  1.4       +6 -6      src/bin/ed/glbl.c
  1.6       +12 -12    src/bin/ed/io.c
  1.9       +67 -62    src/bin/ed/main.c
  1.4       +22 -19    src/bin/ed/re.c
  1.4       +8 -7      src/bin/ed/sub.c
  1.4       +4 -4      src/bin/ed/undo.c


http://www.dragonflybsd.org/cvsweb/src/bin/ed/buf.c.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/ed/cbc.c.diff?r1=1.9&r2=1.10&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/ed/ed.h.diff?r1=1.8&r2=1.9&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/ed/glbl.c.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/ed/io.c.diff?r1=1.5&r2=1.6&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/ed/main.c.diff?r1=1.8&r2=1.9&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/ed/re.c.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/ed/sub.c.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/ed/undo.c.diff?r1=1.3&r2=1.4&f=u





More information about the Commits mailing list