summaryrefslogtreecommitdiff
path: root/src/libs6rc/s6rc_service_num.c
blob: a70fc82d3e9085954bdb53b5d6384c8f0d3ed73a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* ISC license. */

#include <stdint.h>

#include <s6-rc/db.h>

uint32_t s6rc_service_num (uint32_t const *dbn, uint32_t id)
{
  uint32_t num ;
  uint8_t type ;
  s6rc_service_typenum(dbn, id, &type, &num) ;
  return num ;
}