Sync with FreeBSD.
commit1e8ccc4f88f9b567a13ccd9958fa2673cdc0152f
authorPeter Avalos <pavalos@dragonflybsd.org>
Fri, 6 Apr 2007 23:36:54 +0000 (6 23:36 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Fri, 6 Apr 2007 23:36:54 +0000 (6 23:36 +0000)
tree11063390159a7acf1231b84575bbac7aab105f88
parentce91a5994561faea6e3b0da1fe98cf4535653db9
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