[Serusers] Error in acc.c ?
Jan Janak
J.Janak at sh.cvut.cz
Thu Feb 13 11:09:32 CET 2003
Hello,
No, instead of msg->header you should use msg->from. The function
accepts pointer to From header. msg->headers points to linked list of
all headers.
regards, Jan.
On 12-02 16:55, Yang Xiang wrote:
> Hi,
>
> While trying to compile the module radius_acc I get some warnings as follows:
>
> acc.c: In function `radius_log_reply':
> acc.c:142: warning: passing arg 1 of `parse_from_header' from incompatible pointer type
> acc.c: In function `radius_log_ack':
> acc.c:426: warning: passing arg 1 of `parse_from_header' from incompatible pointer type
> acc.c: In function `rad_acc_request':
> acc.c:708: warning: passing arg 1 of `parse_from_header' from incompatible pointer type
>
> So I looked into the file acc.c and found such statements like
>
> if ( parse_from_header( msg )==-1 )
>
> Because the function parse_from_header needs a parameter of type hdr_field, I changed the statements above to
>
> if ( parse_from_header( msg->headers )==-1 )
>
> after this the warnings don't appear any longer.
>
> Is this change ok?
>
> Best Regards
>
> Yang
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20030213/3118ddfd/attachment.pgp>
More information about the sr-users
mailing list