Hi Again,
Since you were so kind to me, I will impose another
one on you (the previous answers were _all_ correct! )
Given:
typedef struct junk {
...
} junk_t
volatile junk_t trash;
What I want to do is zero out trash.
bzero(trash, sizeof(junk_t));
produces a warning about loss of volatility.
So does:
bzero((void *)&trash, sizeof(junk_t));
So, how do I make everyone happy?
Oh, the struct has to be volatile. Trust me on that one.
Sincerely Yours
404.664.6401
Simon Shapiro Research Fellow, Earthlink Inc.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message
- One more question (different now) Simon Shapiro
- One more question (different now) Garrett Wollman
- Re: One more question (different now) Bruce Evans
- Re: One more question (different now) Mike Smith
- Re: One more question (different now) David O'Brien
- Re: One more question (different now) Mike Smith
- Re: One more question (different now) Marcel Moolenaar
- Re: One more question (different no... Simon Shapiro
- Re: One more question (different now) Simon Shapiro
- Re: One more question (different now) Doug Rabson
- Re: One more question (different no... Simon Shapiro
