aboutsummaryrefslogtreecommitdiff
path: root/src/sysvinit.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-12-07 10:53:05 +0200
committerSergey Poznyakoff <gray@gnu.org>2020-12-07 10:53:05 +0200
commit217efcb974309cd373e9ab9e11573de8270e74e0 (patch)
treee291e493565e52c86a57d31d4401dc939f0bf581 /src/sysvinit.c
parentb3a58380b93512b86fe02749425410d89a5655d4 (diff)
downloadpies-217efcb974309cd373e9ab9e11573de8270e74e0.tar.gz
pies-217efcb974309cd373e9ab9e11573de8270e74e0.tar.bz2
New API endpoint /alive. Improve documentation.
* doc/Makefile.am: Add ctl.texi * doc/ctl.texi: New file. * doc/pies.texi: Add anchors for ctl.texi * src/ctl.c (json_error_reply_create): Set status depending on the HTTP response code. Use "message", instead of "error_message". New endpoint: /alive * src/inetd.c: Use grecs_getline instead of getline. * src/sysvinit.c: Likewise. * src/piesctl.c: Inspect "message", instead of "error_message".
Diffstat (limited to 'src/sysvinit.c')
-rw-r--r--src/sysvinit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysvinit.c b/src/sysvinit.c
index f63687e..a9681e0 100644
--- a/src/sysvinit.c
+++ b/src/sysvinit.c
@@ -1167,7 +1167,7 @@ inittab_parse (const char *file)
fp = fopen (file, "r");
if (fp)
{
- while (getline (&ctx.buf, &ctx.size, fp) >= 0)
+ while (grecs_getline (&ctx.buf, &ctx.size, fp) >= 0)
{
enum inittab_status st = inittab_parse_line (&ctx);
if (st == inittab_err)

Return to:

Send suggestions and report system problems to the System administrator.