Correct style bugs in the in-place editing code.

This commit is contained in:
Dag-Erling Smørgrav 2003-11-04 12:07:09 +00:00
parent a27a4b3690
commit 9df25dda8c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122043

View File

@ -419,7 +419,7 @@ inplace_edit(filename)
err(1, "lstat");
if ((orig.st_mode & S_IFREG) == 0) {
warnx("cannot inplace edit %s, not a regular file", *filename);
return -1;
return (-1);
}
if (*inplace == '\0') {
@ -453,7 +453,7 @@ inplace_edit(filename)
*filename = strdup(backup);
if (*filename == NULL)
err(1, "malloc");
return 0;
return (0);
}
int