linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Woods <kazrak+kernel@cesmail.net>
To: "Joseph D. Wagner" <theman@josephdwagner.info>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: More Pointer Woes
Date: Sun, 28 Dec 2003 18:32:04 -0800	[thread overview]
Message-ID: <6.0.1.1.0.20031228182648.04161950@no.incoming.mail> (raw)
In-Reply-To: <200312281945.30750.theman@josephdwagner.info>

At 12/28/2003 07:45 PM +0600, Joseph D. Wagner wrote:
>find.c:341: error: request for member `blocksize' in something not a 
>structure or union
>
>on line 341:
>
>block_order_log.total_blocks = inode.i_blocks / ((fs->blocksize) / 512);
>
>fs is a pointer but blocksize isn't.

"fs->blocksize" refers to a field "blocksize" in a struct or union that the 
pointer "fs" indicates.  If  "fs" isn't a pointer to a struct (or union) 
then the "->" operator isn't valid.  What type is "fs"?

P.S.  Did you get this code from an email? Perhaps the ">" came from an 
email quote that didn't get cleaned up and "fs-blocksize" morphed into 
"fs->blocksize".  But this looks like a long-shot to me.  I expect that 
"fs" is supposed to be a pointer to a struct.

--
Jeff Woods <kazrak+kernel@cesmail.net> 



  reply	other threads:[~2003-12-29  2:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-28 13:45 More Pointer Woes Joseph D. Wagner
2003-12-29  2:32 ` Jeff Woods [this message]
2003-12-28 16:06   ` Joseph D. Wagner
2003-12-29 13:44     ` Mariano Moreyra

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=6.0.1.1.0.20031228182648.04161950@no.incoming.mail \
    --to=kazrak+kernel@cesmail.net \
    --cc=linux-c-programming@vger.kernel.org \
    --cc=theman@josephdwagner.info \
    /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).