Correct style bugs in the in-place editing code.
This commit is contained in:
parent
46a574efa9
commit
12bd424bdf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user