Oh boy, I got nearly no sleep last night, woke up WAY too early, and hopped straight away into this coding project, so what I ask may be very simple, but this coffee has not kickstared by brain yet.. Those who know me know I've coded for quite a while now, so forgive my brain-absence today!
ok, what is wrong with this loop?! Code snippits follow:
int i; iter;
for (iter=1; iter<(i=1); iter++)
sendbuf = "A";
?? Looks fine to me, but when I compile, I get the warning (yes, only a warning) : Warning: Assignement makes integer from a pointer without a cast.
The warning refers to the sendbuf line.. What the hell?? I don't see the problem here.. Then, whenever I run it, even with a tiny amount of data in the buffer (ie, not even half of the buffer size) I get a segmentation fault.. Grrr, I'm not overflowing any buffers that I can see, so why the seg fault?? Any idea's?
On FreeBSD, btw..
The Merld One