Correct style bugs in the in-place editing code.

This commit is contained in:
des 2003-11-04 12:07:09 +00:00
parent 46a574efa9
commit 12bd424bdf

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