~vcs-imports/libxfce4menu/trunk

« back to all changes in this revision

Viewing changes to tdb/tdbspeed.c

  • Committer: Nick Schermer
  • Date: 2010-05-12 20:04:03 UTC
  • Revision ID: git-v1:fbea710b3c09c937ba6343d4ab1cadb5366f7040
Fix compilation warnings (bug #5982).

Use copy of tdb in Thunar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
 
76
76
struct timeval tp1,tp2;
77
77
 
78
 
static void start_timer()
 
78
static void start_timer(void)
79
79
{
80
80
        gettimeofday(&tp1,NULL);
81
81
}
82
82
 
83
 
static double end_timer()
 
83
static double end_timer(void)
84
84
{
85
85
        gettimeofday(&tp2,NULL);
86
86
        return((tp2.tv_sec - tp1.tv_sec) + 
162
162
 
163
163
int main(int argc, char *argv[])
164
164
{
165
 
        int i, j, seed=0;
166
 
        int k;
 
165
        int seed=0;
 
166
        unsigned int i, k, j;
167
167
 
168
168
        /* Precook random buffers */
169
169
        randdata = malloc(10000 * sizeof(randdata[0]));