X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fsort.c;h=e03ef5744bfbd8acc0ec9479f96714ccfecc92e8;hb=9b94efd7513afdb12a6023024e00e50801532fee;hp=95c40fb39cdc029b2f1ce592194affed2b9002d0;hpb=130ced32165dc409b1be560d3d7a581a7ba3c5ee;p=pspp-builds.git diff --git a/src/math/sort.c b/src/math/sort.c index 95c40fb3..e03ef574 100644 --- a/src/math/sort.c +++ b/src/math/sort.c @@ -26,11 +26,12 @@ #include #include #include -#include #include #include #include +#include "xalloc.h" + #include "gettext.h" #define _(msgid) gettext (msgid) @@ -207,7 +208,7 @@ pqueue_create (const struct case_ordering *ordering) pq = xmalloc (sizeof *pq); pq->ordering = case_ordering_clone (ordering); pq->record_cap - = get_workspace_cases (case_ordering_get_value_cnt (ordering)); + = settings_get_workspace_cases (case_ordering_get_value_cnt (ordering)); if (pq->record_cap > max_buffers) pq->record_cap = max_buffers; else if (pq->record_cap < min_buffers)