aboutsummaryrefslogtreecommitdiffstats
path: root/src/repo/s6rc_repo_sv_bcmpr.c
blob: bcc4d809a58a6e55e71bede59e125f0cafc4ccf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* ISC license. */

#include <string.h>

#include <s6-rc/repo.h>

int s6rc_repo_sv_bcmpr (void const *a, void const *b, void *aux)
{
  char const *key = a ;
  s6rc_repo_sv const *elem = b ;
  char const *s = aux ;
  return strcmp(key, s + elem->pos) ;
}