mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
I've been Brucified! I did evil things with typedefs, but I'll do it
the correct (but less aesthetic) way, now. New lesson: correctness and aestheticity may be mutually exclusive at times. Brucified by: bde
This commit is contained in:
parent
bfe31f4f2a
commit
dd92370286
1 changed files with 4 additions and 4 deletions
|
|
@ -173,9 +173,9 @@ static int
|
|||
c_arg(a, b)
|
||||
const void *a, *b;
|
||||
{
|
||||
typedef const struct arg *c_arg_p;
|
||||
|
||||
return (strcmp(((c_arg_p)a)->name, ((c_arg_p)b)->name));
|
||||
return (strcmp(((const struct arg *)a)->name,
|
||||
((const struct arg *)b)->name));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -331,9 +331,9 @@ static int
|
|||
c_conv(a, b)
|
||||
const void *a, *b;
|
||||
{
|
||||
typedef const struct conv *c_conv_p;
|
||||
|
||||
return (strcmp(((c_conv_p)a)->name, ((c_conv_p)b)->name));
|
||||
return (strcmp(((const struct conv *)a)->name,
|
||||
((const struct conv *)b)->name));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue