r30112 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r30111‎ | r30112 | r30113 >
Date:11:30, 24 January 2008
Author:avar
Status:old
Tags:
Comment:
#include <db.h> not <db4/db.h>, db.h is in /usr/include/db.h on e.g. debian
Modified paths:
  • /trunk/webstatscollector/collector.c (modified) (history)
  • /trunk/webstatscollector/collector.h (modified) (history)
  • /trunk/webstatscollector/export.c (modified) (history)

Diff [purge]

Index: trunk/webstatscollector/export.c
@@ -14,7 +14,7 @@
1515 #include <string.h>
1616 #include <unistd.h>
1717 #include <netinet/in.h>
18 -#include <db4/db.h>
 18+#include <db.h>
1919 #include "collector.h"
2020
2121 void dumpData(FILE *fd, DB *db) {
Index: trunk/webstatscollector/collector.c
@@ -24,7 +24,7 @@
2525 #include <errno.h>
2626 #include <fcntl.h>
2727 #include <netinet/in.h>
28 -#include <db4/db.h>
 28+#include <db.h>
2929 #include <pthread.h>
3030 #include "collector.h"
3131
Index: trunk/webstatscollector/collector.h
@@ -2,7 +2,7 @@
33 /* $Id: collector.h 12318 2005-12-31 15:34:46Z midom $ */
44
55 #include <stdio.h>
6 -#include <db4/db.h>
 6+#include <db.h>
77
88 #define PERIOD 3600
99 #define PREFIX "dumps/"

Status & tagging log