Skip to content

Commit

Permalink
change info words "remove" to "delete" in delete sub-command
Browse files Browse the repository at this point in the history
  This close #664
  • Loading branch information
mingzym authored and vapier committed Dec 4, 2023
1 parent 179ff28 commit bfdafe4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rc-update/rc-update.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ delete(const char *runlevel, const char *service)

errno = 0;
if (rc_service_delete(runlevel, service)) {
einfo("service %s removed from runlevel %s",
einfo("service %s deleted from runlevel %s",
service, runlevel);
return 1;
}
Expand All @@ -97,7 +97,7 @@ delete(const char *runlevel, const char *service)
eerror("%s: service `%s' is not in the runlevel `%s'",
applet, service, runlevel);
else
eerror("%s: failed to remove service `%s' from runlevel `%s': %s",
eerror("%s: failed to delete service `%s' from runlevel `%s': %s",
applet, service, runlevel, strerror (errno));

return retval;
Expand Down Expand Up @@ -144,15 +144,15 @@ static int
delstack(const char *runlevel, const char *stack)
{
if (rc_runlevel_unstack(runlevel, stack)) {
einfo("runlevel %s removed from runlevel %s", stack, runlevel);
einfo("runlevel %s deleted from runlevel %s", stack, runlevel);
return 1;
}

if (errno == ENOENT)
eerror("%s: runlevel `%s' is not in the runlevel `%s'",
applet, stack, runlevel);
else
eerror("%s: failed to remove runlevel `%s' from runlevel `%s': %s",
eerror("%s: failed to delete runlevel `%s' from runlevel `%s': %s",
applet, stack, runlevel, strerror (errno));

return -1;
Expand Down

0 comments on commit bfdafe4

Please sign in to comment.