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

#include <skalibs/devino.h>

int devino_cmp (void const *a, void const *b)
{
  devino const *aa = a ;
  devino const *bb = b ;
  return aa->dev < bb->dev ? -1 :
    aa->dev > bb->dev ? 1 :
    aa->ino < bb->ino ? -1 :
    aa->ino > bb->ino ;
}