IWETHEY v. 0.3.0 | TODO
1,095 registered users | 1 active user | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Line Number
Are you sure that line number is correct or have you edited the file in question? The only reason I ask is that the source I grabbed off the MIT site has line 632 and 633 as
\nif ((tp = gettosbyname("interactive", "tcp")) &&\n        (setsockopt(f, IPPROTO_IP, IP_TOS, &tp->t_tos, sizeof(int)) < 0))\n

If that code was somehow getting ifdeffed in (I don't think it should on Linux) then the two messages you list could make sense.

The warning could result from the compiler not having a prototype for gettosbyname and defaulting to returning int, which then triggers the warning of trying to convert the int result to a pointer (tp)

The error could then be explained by the derefencing of the tp pointer in the setsockopt call before the struct type had been fully specified (the struct tosent *tp; line would in effect be a forward declaration that never got completed before it was used because the compiler doesn't know what "struct tosent" is).



--
Chris Altmann
New Something stinks...
This was supposed to be simple.

Here is what I am looking at, this was a src.rpm packaged set of source. It was signed and validated proper.

I guess, I'll have to ask some questions. I don't believe the, the person I got this from is dishonest, as he actually is a member of the FOSS Community.

I'll be reporting back when I find out everything.
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey
No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
     I keep getting a problem here: - (folkert) - (10)
         WAG time - (ben_tilly) - (4)
             More WAG - (altmann) - (3)
                 Not a weird platform. - (folkert) - (2)
                     Line Number - (altmann) - (1)
                         Something stinks... - (folkert)
         6 more # signs out to do it -NT - (boxley)
         LRPD! - (deSitter)
         Here's my guess: - (jb4)
         Could you post preprocessed source? - (Arkadiy)
         I actually... - (folkert)

Strong in the elbows but weak in the knees.
64 ms