mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Correct style bugs in the in-place editing code.
This commit is contained in:
parent
a27a4b3690
commit
9df25dda8c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122043
@ -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