Change edit/gedit/setpid/gsetpid to return 0/-1 to indicate success or failure
authorkrw <krw@openbsd.org>
Sat, 17 Jul 2021 13:37:01 +0000 (13:37 +0000)
committerkrw <krw@openbsd.org>
Sat, 17 Jul 2021 13:37:01 +0000 (13:37 +0000)
commit386fe4491b471d5934c5984e66f4e77a57705e56
tree5265b492268d53d5b8bb1bceba54d629f5c93dde
parent089d24962d48edc0dcf09aefb9cda30018e8a98c
Change edit/gedit/setpid/gsetpid to return 0/-1 to indicate success or failure
as all other helpers do.

Makes it clear that X* functions are in charge of deciding which CMD_* value
they return to main edting loop. Reduces unnecessary copying/restoring of
original partition information.

No intentional functional change.
sbin/fdisk/cmd.c