Sync with FreeBSD.
authorPeter Avalos <pavalos@dragonflybsd.org>
Fri, 6 Apr 2007 23:36:54 +0000 (23:36 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Fri, 6 Apr 2007 23:36:54 +0000 (23:36 +0000)
commitdc8e4b6f39924cd54b380b2c807c1f80b6672a88
treec761c32d06630af1f98c7bac0438ffd1026a6d6b
parentd6ee83c72d5e962b53c7256c81a2469d7662129a
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.
bin/ed/buf.c
bin/ed/cbc.c
bin/ed/ed.h
bin/ed/glbl.c
bin/ed/io.c
bin/ed/main.c
bin/ed/re.c
bin/ed/sub.c
bin/ed/undo.c