Skip to content

Commit

Permalink
roken: qsort provide ANSI C prototype for swapfunc()
Browse files Browse the repository at this point in the history
K&R is no longer acceptable.
  • Loading branch information
jaltman committed Jun 6, 2023
1 parent adde2e5 commit 93454c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/roken/qsort.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ static inline void swapfunc(char *, char *, int, int);
es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1;

static inline void
swapfunc(a, b, n, swaptype)
char *a, *b;
int n, swaptype;
swapfunc(char *a, char *b, int n, int swaptype)
{
if(swaptype <= 1)
swapcode(long, a, b, n)
Expand Down

0 comments on commit 93454c8

Please sign in to comment.