From f638c628d73a2a1d9820aa19cc7739e1decd2a91 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 23 Oct 2007 20:57:37 +0000 Subject: [PATCH] Made initialization function return a pointer to the MAC driver structure, to make initialization nicer --- core/net/mac/nullmac.h | 4 ++-- core/net/mac/xmac.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/net/mac/nullmac.h b/core/net/mac/nullmac.h index 72b78de59..a6f32964b 100644 --- a/core/net/mac/nullmac.h +++ b/core/net/mac/nullmac.h @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: nullmac.h,v 1.2 2007/05/25 08:07:15 adamdunkels Exp $ + * $Id: nullmac.h,v 1.3 2007/10/23 20:57:37 adamdunkels Exp $ */ /** @@ -46,6 +46,6 @@ extern const struct mac_driver nullmac_driver; -void nullmac_init(const struct radio_driver *r); +const struct mac_driver *nullmac_init(const struct radio_driver *r); #endif /* __NULLMAC_H__ */ diff --git a/core/net/mac/xmac.h b/core/net/mac/xmac.h index a3b3197f5..081e26801 100644 --- a/core/net/mac/xmac.h +++ b/core/net/mac/xmac.h @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: xmac.h,v 1.4 2007/05/25 08:07:15 adamdunkels Exp $ + * $Id: xmac.h,v 1.5 2007/10/23 20:57:37 adamdunkels Exp $ */ /** @@ -46,6 +46,6 @@ extern const struct mac_driver xmac_driver; -void xmac_init(const struct radio_driver *d); +const struct mac_driver *xmac_init(const struct radio_driver *d); #endif /* __XMAC_H__ */