[PATCH 5/6] msgb/test: Add tests for msgb_resize_area and msgb_copy

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Neels Hofmeyr nhofmeyr at sysmocom.de
Mon Nov 23 09:43:43 UTC 2015


On Tue, Nov 17, 2015 at 10:37:48AM +0100, Jacob Erlbeck wrote:
> diff --git a/tests/msgb/msgb_test.c b/tests/msgb/msgb_test.c
> index 412e8bb..08d9857 100644
> --- a/tests/msgb/msgb_test.c
> +++ b/tests/msgb/msgb_test.c
> @@ -87,6 +87,7 @@ static void test_msgb_api()
>  	msg->l3h = msg->head - 1;
>  	printf("Buffer: %s\n", msgb_hexdump(msg));
>  
> +
>  #if 0
>  extern void msgb_reset(struct msgb *m);
>  #define msgb_l1(m)	((void *)(MSGB_CHECK2(m)->l1h))
> @@ -97,15 +98,61 @@ static inline unsigned int msgb_l1len(const struct msgb *msgb)
>  	static inline unsigned char *msgb_get(struct msgb *msgb, unsigned int len)
>  	static inline unsigned char *msgb_push(struct msgb *msgb, unsigned int len)
>  	static inline unsigned char *msgb_pull(struct msgb *msgb, unsigned int len)
> -	
> +
>  	static inline unsigned char *msgb_pull_to_l3(struct msgb *msg)
>  	static inline int msgb_trim(struct msgb *msg, int len)
>  	static inline int msgb_l3trim(struct msgb *msg, int l3len)
>  	uint8_t *msgb_data(const struct msgb *msg);
> -	return;
> +return;
>  #endif
>  }

^ seems like those whitespace changes came in by accident...

~Neels

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20151123/2e3a2d49/attachment.bin>


More information about the OpenBSC mailing list