pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Please someone fix libopensync



On Tue, 11 Dec 2007 20:42:44 +1100, Petr Janda 
<elekktretterr%exemail.com.au@localhost> wrote:

> cc1: warnings being treated as errors
> osynctest.c: In function 'modify_data':
> osynctest.c:215: warning: missing sentinel in function call

Hmm, could you apply the following patches too?
Which architecture do you use? amd64?

--- tests/mock-plugin/mock_sync.c.orig  2007-03-27 20:49:19.000000000 +0900
+++ tests/mock-plugin/mock_sync.c
@@ -224,7 +224,7 @@ static void mock_get_changeinfo(OSyncCon
                return;
        }
        while ((de = g_dir_read_name(dir))) {
-               char *filename = g_build_filename(env->path, de, NULL);
+               char *filename = g_build_filename(env->path, de, (char *)NULL);
                if (g_file_test(filename, G_FILE_TEST_IS_REGULAR)) {
                        /* Report normal files */
                        OSyncChange *change = osync_change_new();

--- tools/osynctest.c.orig      2007-03-27 20:49:19.000000000 +0900
+++ tools/osynctest.c
@@ -212,7 +212,7 @@ void modify_data(OSyncMember *member, co
 
        const char *de = NULL;
        while ((de = g_dir_read_name(dir))) {
-               char *filename = g_build_filename(localdir, de, NULL);
+               char *filename = g_build_filename(localdir, de, (char *)NULL);
 
                OSyncChange *change = osync_change_new();
                if (!osync_member_make_random_data(member, change, objtype)) {


-- Yuji Yamano 
Peace, Unity, Love and Having Fun!



Home | Main Index | Thread Index | Old Index