Use correct operator for negation (readnew).
authorZdeněk Salvet <salvet@ics.muni.cz>
Wed, 23 Aug 2006 13:29:47 +0000 (13:29 +0000)
committerZdeněk Salvet <salvet@ics.muni.cz>
Wed, 23 Aug 2006 13:29:47 +0000 (13:29 +0000)
org.glite.jp.client/src/jpimporter.c

index 98180fe..e3bde1e 100644 (file)
@@ -432,11 +432,11 @@ static int dump_importer(void)
        if ( readnew ) ret = edg_wll_MaildirTransStart(dump_mdir, &msg, &fname);
        else ret = edg_wll_MaildirRetryTransStart(dump_mdir, (time_t)60, &msg, &fname);
        if ( !ret ) { 
-               readnew = ~readnew;
+               readnew = !readnew;
                if ( readnew ) ret = edg_wll_MaildirTransStart(dump_mdir, &msg, &fname);
                else ret = edg_wll_MaildirRetryTransStart(dump_mdir, (time_t)60, &msg, &fname);
                if ( !ret ) {
-                       readnew = ~readnew;
+                       readnew = !readnew;
                        return 0;
                }
        }