We can just move the function up before any of its callers.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
}
#endif
-static void rem_prlim(struct prlimit *lim);
-
static void __attribute__ ((__noreturn__)) usage(FILE * out)
{
size_t i;
return -1;
}
+static void rem_prlim(struct prlimit *lim)
+{
+ if (!lim)
+ return;
+ list_del(&lim->lims);
+ free(lim);
+}
+
static int show_limits(struct list_head *lims, int tt_flags)
{
int i;
}
}
-
-
static int get_range(char *str, rlim_t *soft, rlim_t *hard, int *found)
{
char *end = NULL;
return 0;
}
-static void rem_prlim(struct prlimit *lim)
-{
- if (!lim)
- return;
- list_del(&lim->lims);
- free(lim);
-}
-
int main(int argc, char **argv)
{
int opt, tt_flags = 0;