On Sat, Jul 14, 2007 at 01:53:37AM +0100, Andrew Fyfe wrote:
A little C help please :)
Am I being really THICK? WTF is wrong with line 61? (http://neptune-one.homeip.net/git?p=pacman;a=blob;f=lib/libalpm/util.h;h=19c...) util.h:61: error: expected ')' before 'mode'
I'm not good either. I first tried chaning mode_t to another fake type, it resulted in the same error, so it let me think mode_t was not defined. I tried to define a fake mode_t with : typedef int mode_t; but this resulted in another error about conflicting types, so I'm confused. Anyway, including <sys/types.h> where mode_t is defined apparently fix the problem, but I'm still confused. I didn't know about that strmode function, I thought about just using something like : if (buf.st_mode != archive_entry_mode(entry)) printf("%o != %o\n", buf.st_mode, archive_entry_mode(entry)); :D