* install locales as the last, because of this may fail
$(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
cd $(srcdir) && $(ACLOCAL)
-install: install-bin install-setupbin install-locale install-wwwdata install-tinymce
+install: install-bin install-setupbin install-wwwdata install-tinymce install-locale
install-bin:
test -d $(DESTDIR)$(prefix) || mkdir -p $(DESTDIR)$(prefix)
void generate_uuid(char *buf) {
static int seq = 0;
- sprintf(buf, "%s-%lx-%x-%x",
+ sprintf(buf, "%s-%lx-%lx-%x",
serv_info.serv_nodename,
(long)time(NULL),
- getpid(),
+ (long)getpid(),
(seq++)
);
}
if (pid_file) {
fp = fopen(pid_file, "w");
if (fp != NULL) {
- fprintf(fp, "%d\n", current_child);
+ fprintf(fp, "%ld\n", current_child);
fclose(fp);
}
}