View | Details | Raw Unified | Return to bug 196668 | Differences between
and this patch

Collapse All | Expand All

(-)b/work/logrotate-3.8.8/logrotate.c 2015-01-12 23:20:11.000000000 -0500 (-2 / +2 lines)
Lines 114-120 Link Here
114
}
114
}
115
#if defined(HAVE_STRPTIME) && defined(HAVE_QSORT_R)
115
#if defined(HAVE_STRPTIME) && defined(HAVE_QSORT_R)
116
static int compGlobResult(const void *result1, const void *result2, void *data)  {
116
static int compGlobResult(void *data, const void *result1, const void *result2)  {
117
       struct tm time;
117
       struct tm time;
118
       time_t t1, t2;
118
       time_t t1, t2;
119
       struct compData *d = (struct compData *) data;
119
       struct compData *d = (struct compData *) data;
Lines 138-144 Link Here
138
       struct compData d;
138
       struct compData d;
139
       d.prefix_len = prefix_len;
139
       d.prefix_len = prefix_len;
140
       d.dformat = dformat;
140
       d.dformat = dformat;
141
       qsort_r(result->gl_pathv, result->gl_pathc, sizeof(char *), compGlobResult, &d);
141
  qsort_r(result->gl_pathv, result->gl_pathc, sizeof(char *), &d, compGlobResult);
142
}
142
}
143
#else
143
#else
144
static void sortGlobResult(glob_t *result, int prefix_len, const char *dformat) {
144
static void sortGlobResult(glob_t *result, int prefix_len, const char *dformat) {

Return to bug 196668