diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2015-05-10 10:07:51 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2015-05-10 10:07:51 +0000 |
commit | b2f03304306a8f009f7d7b23dc6eb143f3a1694c (patch) | |
tree | a3caf3a3fc3d29f34b8a25ff6bb8fb630250afd5 /app/xedit/commands.c | |
parent | 0ba29d8c77ea5278e923b872dcdd8d00e0d2a47c (diff) |
Update to xedit 1.2.2
Diffstat (limited to 'app/xedit/commands.c')
-rw-r--r-- | app/xedit/commands.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/app/xedit/commands.c b/app/xedit/commands.c index 90a64ec35..e64fe3098 100644 --- a/app/xedit/commands.c +++ b/app/xedit/commands.c @@ -29,9 +29,6 @@ #include <X11/Xfuncs.h> #include <X11/Xos.h> #include "xedit.h" -#ifdef CRAY -#include <unistd.h> -#endif #include <stdlib.h> #include <stdio.h> #include <limits.h> @@ -161,20 +158,6 @@ makeBackupName(String buf, String filename, unsigned len) return (strcmp(filename, buf) ? buf : NULL); } - -#if defined(USG) && !defined(CRAY) -int rename (from, to) - char *from, *to; -{ - (void) unlink (to); - if (link (from, to) == 0) { - unlink (from); - return 0; - } else { - return -1; - } -} -#endif /*ARGSUSED*/ void @@ -204,7 +187,7 @@ DoSave(Widget w, XtPointer client_data, XtPointer call_data) Widget source = XawTextGetSource(textwindow); char buffer[BUFSIZ]; struct stat st; - static char *nothing_saved = " -- nothing saved.\n"; + static const char *nothing_saved = " -- nothing saved.\n"; if (!filename) { XmuSnprintf(buffer, sizeof(buffer), "%s%s", |