* main/enquiry.c: fix the listpackage output logic
* main/filesdb.c: fix error cleanup in ensure_statoverride
- * lib/myopt.c: add myoptfile() so we can read configuration files
+ * lib/myopt.[ch]: add myoptfile() so we can read configuration files
* main/main.c: call new myoptfile()
* include/Makefile.in, include/dpkg.h.in: add dpkgconfdir
dpkg.h: dpkg.h.in
sed -e 's,#CONFIGDIR#,$(dpkgconfdir),' \
-e 's,#ADMINDIR#,$(admindir),' \
- -e 's,#LIBDIR#,$(dpkglibdir),; $< > $@
+ -e 's,#LIBDIR#,$(dpkglibdir),' $< > $@
.PHONY: all install clean distclean
voidfnp farg;
};
+void myfileopt(const char* fn, const struct cmdinfo* cmdinfos);
void myopt(const char *const **argvp, const struct cmdinfo *cmdinfos);
#endif /* MYOPT_H */
#include <myopt.h>
#include <dpkg.h>
-void myoptfile(const char* fn, const struct cmdinfo* cmdinfos) {
+void myfileopt(const char* fn, const struct cmdinfo* cmdinfos) {
FILE* file;
char linebuf[MAXDIVERTFILENAME];