Hey programmers of MacRumors, and otherwise more cleverer people than I!
I'm creating 2 programs to simulate a print que. One forks processes and communicates the PID and a random prioity number through a FIFO to a despooler program, which them reads then and is supposed to kill those processes off, as if they were being printed and no longer in the que!...great eh?!
My problem comes now that I suddenly cannot compile my main spooler/printer file. I get these error messages:
Is it one of those things that you can get the compiler to ignore and it will still work?
Any insights guys?
I'll post code if needed.
I'm creating 2 programs to simulate a print que. One forks processes and communicates the PID and a random prioity number through a FIFO to a despooler program, which them reads then and is supposed to kill those processes off, as if they were being printed and no longer in the que!...great eh?!
My problem comes now that I suddenly cannot compile my main spooler/printer file. I get these error messages:
Now I've done a little research and am I write in thinking this is most likely the GCC compiler being very picky? It didn't do it before and I'm not sure what I've changed to make it not work!My Awful C Code! printer.c said:printer.c:165: warning: passing argument 1 of 'gets' makes pointer from integer without a cast
printer.c:167: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast
printer.c:167: warning: passing argument 2 of 'write' makes pointer from integer without a cast
Is it one of those things that you can get the compiler to ignore and it will still work?
Any insights guys?
I'll post code if needed.