mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Collect duplicate copies of oid_cmp()
This commit is contained in:
@@ -27,12 +27,11 @@
|
||||
#include "catalog/pg_inherits_fn.h"
|
||||
#include "parser/parse_type.h"
|
||||
#include "storage/lmgr.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/fmgroids.h"
|
||||
#include "utils/syscache.h"
|
||||
#include "utils/tqual.h"
|
||||
|
||||
static int oid_cmp(const void *p1, const void *p2);
|
||||
|
||||
|
||||
/*
|
||||
* find_inheritance_children
|
||||
@@ -357,18 +356,3 @@ typeInheritsFrom(Oid subclassTypeId, Oid superclassTypeId)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
/* qsort comparison function */
|
||||
static int
|
||||
oid_cmp(const void *p1, const void *p2)
|
||||
{
|
||||
Oid v1 = *((const Oid *) p1);
|
||||
Oid v2 = *((const Oid *) p2);
|
||||
|
||||
if (v1 < v2)
|
||||
return -1;
|
||||
if (v1 > v2)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user