tree 77981ee635498d88417ccb7742214cbbd3b1a466
parent 513c25000005257e5474f261bf27d4a3c1dff1e3
author Stephen Hemminger <[EMAIL PROTECTED]> Wed, 07 Sep 2005 05:48:03 -0700
committer David S. Miller <[EMAIL PROTECTED]> Wed, 07 Sep 2005 05:48:03 -0700

[NET]: skb_get/set_timestamp use const

The new timestamp get/set routines should have const attribute
on parameters (helps to indicate direction).

Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>

 include/linux/skbuff.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1251,7 +1251,7 @@ extern void skb_add_mtu(int mtu);
  *     This function converts the offset back to a struct timeval and stores
  *     it in stamp.
-static inline void skb_get_timestamp(struct sk_buff *skb, struct timeval 
+static inline void skb_get_timestamp(const struct sk_buff *skb, struct timeval 
        stamp->tv_sec  = skb->tstamp.off_sec;
        stamp->tv_usec = skb->tstamp.off_usec;
@@ -1270,7 +1270,7 @@ static inline void skb_get_timestamp(str
  *     This function converts a struct timeval to an offset and stores
  *     it in the skb.
-static inline void skb_set_timestamp(struct sk_buff *skb, struct timeval 
+static inline void skb_set_timestamp(struct sk_buff *skb, const struct timeval 
        skb->tstamp.off_sec  = stamp->tv_sec - skb_tv_base.tv_sec;
        skb->tstamp.off_usec = stamp->tv_usec - skb_tv_base.tv_usec;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to