~ubuntu-branches/ubuntu/natty/evolution-exchange/natty

« back to all changes in this revision

Viewing changes to storage/migr-test.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-06-16 00:24:12 UTC
  • mfrom: (1.1.57 upstream)
  • Revision ID: james.westby@ubuntu.com-20090616002412-g7ucx327w7rpqhij
Tags: 2.27.3-0ubuntu1
* New upstream version 
* debian/control:
  - updated evolution requirement
* debian/patches/20_fix-crash-on-personal-calendar.patch:
  - the change is in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
#include "exchange-types.h"
38
38
#include "exchange-migrate.h"
39
39
 
40
 
int
41
 
main (int argc, char **argv)
 
40
gint
 
41
main (gint argc, gchar **argv)
42
42
{
43
43
        CORBA_short major=1;
44
44
        CORBA_short minor=4;
45
45
        CORBA_short revision=0;
46
 
        gchar *source = "~/evolution";
47
 
        gchar *dest= "/tmp/.evolution-test";
 
46
        const gchar *source = "~/evolution";
 
47
        const gchar *dest= "/tmp/.evolution-test";
48
48
        gchar *user = NULL, *server = NULL, *base_dir, *uid = NULL;
49
 
        int opt;
50
 
        char optstr[] = "M:m:r:u:h:s:d:";
 
49
        gint opt;
 
50
        gchar optstr[] = "M:m:r:u:h:s:d:";
51
51
 
52
52
        gnome_program_init("migr-test", VERSION, LIBGNOMEUI_MODULE, argc, argv, NULL);
53
53
        gdk_init(&argc, &argv);
98
98
 
99
99
        /* destination path */
100
100
        base_dir = g_build_filename (dest, uid, NULL);
101
 
        printf("base dir is %s; uid = %s; dest = %s ; source=%s \n", base_dir, uid, dest, source);
 
101
        printf("base dir is %s; uid = %s; dest = %s; source=%s \n", base_dir, uid, dest, source);
102
102
 
103
 
        exchange_migrate (major, minor, revision, base_dir, (char *) uid);
 
103
        exchange_migrate (major, minor, revision, base_dir, (gchar *) uid);
104
104
 
105
105
        g_free (base_dir);
106
106
        g_free (uid);