netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Levon <levon@movementarian.org>
To: netdev@oss.sgi.com
Subject: [PATCH] SEQ_START_TOKEN for af_netlink.c
Date: Thu, 18 Sep 2003 22:25:18 +0100	[thread overview]
Message-ID: <20030918212518.GA86845@compsoc.man.ac.uk> (raw)


Seems this got missed in the sweep.

regards
john

diff -Naurp -X dontdiff linux-cvs/net/netlink/af_netlink.c linux-fixes/net/netlink/af_netlink.c
--- linux-cvs/net/netlink/af_netlink.c	2003-09-05 18:48:00.000000000 +0100
+++ linux-fixes/net/netlink/af_netlink.c	2003-09-18 22:45:19.000000000 +0100
@@ -988,7 +988,7 @@ static struct sock *netlink_seq_socket_i
 static void *netlink_seq_start(struct seq_file *seq, loff_t *pos)
 {
 	read_lock(&nl_table_lock);
-	return *pos ? netlink_seq_socket_idx(seq, *pos - 1) : (void *) 1;
+	return *pos ? netlink_seq_socket_idx(seq, *pos - 1) : SEQ_START_TOKEN;
 }
 
 static void *netlink_seq_next(struct seq_file *seq, void *v, loff_t *pos)
@@ -997,7 +997,7 @@ static void *netlink_seq_next(struct seq
 
 	++*pos;
 
-	if (v == (void *) 1) 
+	if (v == SEQ_START_TOKEN)
 		return netlink_seq_socket_idx(seq, 0);
 		
 	s = sk_next(v);
@@ -1023,7 +1023,7 @@ static void netlink_seq_stop(struct seq_
 
 static int netlink_seq_show(struct seq_file *seq, void *v)
 {
-	if (v == (void *)1) 
+	if (v == SEQ_START_TOKEN)
 		seq_puts(seq,
 			 "sk       Eth Pid    Groups   "
 			 "Rmem     Wmem     Dump     Locks\n");

             reply	other threads:[~2003-09-18 21:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-18 21:25 John Levon [this message]
2003-09-20  7:36 ` [PATCH] SEQ_START_TOKEN for af_netlink.c David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030918212518.GA86845@compsoc.man.ac.uk \
    --to=levon@movementarian.org \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).