tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: mbuf initialization macros
In article <571463BF.30607%iij.ad.jp@localhost>,
Kengo NAKAHARA <k-nakahara%iij.ad.jp@localhost> wrote:
>@@ -867,6 +867,10 @@ int m_append(struct mbuf *, int, const void *);
> /* Inline routines. */
> static __inline u_int m_length(const struct mbuf *) __unused;
>
>+static __inline void m_hdr_init(struct mbuf *, short, struct mbuf *,
>+ char *, int);
>+static __inline void m_pkthdr_init(struct mbuf *);
>+
Looks good, but you should not need the above... Perhaps remove all
the static __inline decls. Is the __unused needed? Can it be moved in
the definition?
christos
Home |
Main Index |
Thread Index |
Old Index