From: Joe Perches <joe@perches.com>
To: linux-kernel@vger.kernel.org, netdev@oss.sgi.com
Subject: [PATCH] 2.6.0-test4 SEQ_START_TOKEN drivers/net (5/6)
Date: Fri, 05 Sep 2003 18:48:10 -0700 [thread overview]
Message-ID: <1062812890.16851.171.camel@localhost.localdomain> (raw)
diff -urN linux-2.6.0-test4/drivers/net/pppoe.c SEQ_START_TOKEN/drivers/net/pppoe.c
-- linux-2.6.0-test4/drivers/net/pppoe.c 2003-08-22 16:57:18.000000000 -0700
+++ SEQ_START_TOKEN/drivers/net/pppoe.c 2003-09-04 19:46:59.000000000 -0700
@@ -986,7 +986,7 @@
struct pppox_opt *po;
char *dev_name;
- if (v == (void *)1) {
+ if (v == SEQ_START_TOKEN) {
seq_puts(seq, "Id Address Device\n");
goto out;
}
@@ -1025,7 +1025,7 @@
loff_t l = *pos;
read_lock_bh(&pppoe_hash_lock);
- return l ? pppoe_get_idx(--l) : (void *)1;
+ return l ? pppoe_get_idx(--l) : SEQ_START_TOKEN;
}
static void *pppoe_seq_next(struct seq_file *seq, void *v, loff_t *pos)
@@ -1033,7 +1033,7 @@
struct pppox_opt *po;
++*pos;
- if (v == (void *)1) {
+ if (v == SEQ_START_TOKEN) {
po = pppoe_get_idx(0);
goto out;
}
reply other threads:[~2003-09-06 1:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1062812890.16851.171.camel@localhost.localdomain \
--to=joe@perches.com \
--cc=linux-kernel@vger.kernel.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