~ubuntu-branches/ubuntu/wily/spatialite/wily-proposed

« back to all changes in this revision

Viewing changes to test/check_version.c

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-07-14 11:57:46 UTC
  • mfrom: (16.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20150714115746-e2iljfmb5sq7o5hh
Tags: 4.3.0-1
Move from experimental to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
#include "sqlite3.h"
51
51
#include "spatialite.h"
52
52
 
53
 
int main (int argc, char *argv[])
 
53
int
 
54
main (int argc, char *argv[])
54
55
{
55
56
    if (argc > 1 || argv[0] == NULL)
56
57
        argc = 1;               /* silencing stupid compiler warnings */
57
58
 
58
 
    if (strcmp(spatialite_version(), VERSION) != 0) {
59
 
        fprintf(stderr, "SpatiaLite version mismatch: %s and %s\n",
60
 
                VERSION, spatialite_version());
61
 
        return -1;
62
 
    }
63
 
    
 
59
    if (strcmp (spatialite_version (), VERSION) != 0)
 
60
      {
 
61
          fprintf (stderr, "SpatiaLite version mismatch: %s and %s\n",
 
62
                   VERSION, spatialite_version ());
 
63
          return -1;
 
64
      }
 
65
 
 
66
    spatialite_shutdown ();
64
67
    return 0;
65
68
}