Just read Global Variables Are Bad.
Yup, I did it for all the wrong reasons.
If it wasn't for your help doing it your way would have taken me a half hour.
Type: Posts; User: [email protected]
Just read Global Variables Are Bad.
Yup, I did it for all the wrong reasons.
If it wasn't for your help doing it your way would have taken me a half hour.
Thanks for the heads up. I'll make it global.
DANG! I don't know how I missed that duplicate struct.
Problem solved.
Thanks again Tim!
Small but complete. Gotcha.
OH! Here's the code:
#include <stdio.h>
#include <stdlib.h>
#include <memory.h> /* for memset */
#include "rap.h"
#include <rpc/rpc.h>
fyi - my Build Log:
-------------- Clean: Release in rap00 ---------------
Cleaned "rap00 - Release"
Yup, everything is there. I included rpc.h which includes types.h which contains:
struct netbuf {
unsigned int maxlen;
unsigned int len;
void *buf;
};
According to this I'm doing it right:Help - AIX 6.1 Information Center
I think I'm structuring netbuf wrong.
Should I have mentioned that this is in Cygwin? Probably huh?
Perhaps the Cygwin...
Why is my linker warning me "C:/cygwin/home/eb/rap00/main.c:94: warning: passing arg 4 of `rpcb_getaddr' from incompatible pointer type"?
And yes, rpcb_getaddr() fails.
/*