Re: [gamin] FAMCancelMonitor - definition should contain const



[...]

A const on a pointer to a structure passed as an argument is just a compiler
hint. If it's missing and the routine does not change the structure this
cannot generate an error.


My point is: gamin's definition of FAMCancelMonitor is incompatible to those of FAMSuspendMonitor and FAMResumeMonitor - maybe fileschanged is the only application making using of the compatible interface of those functions through function-pointers;

My question remains: Does gamin free the FAMRequest or not - in fam.h it says:

/**
 * FAMCancelMonitor:
 *
 * This function is used to permanently stop a monitoring request.
 * the routine will free the FAMRequest structure provided.
 */

- but IMHO you said, it didn't ... If it doesn't, why not declare it const?

Thanks,
Michael



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]