Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 10th, 2012  |  syntax: None  |  size: 0.72 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. static void
  2. __callback_merge_from_DHT (int local, int remote, struct Tweet* tweet, void* cls)
  3. {
  4.   GNUNET_assert (cls == NULL);
  5.  
  6.   if (local == GNUNET_YES && remote == GNUNET_YES)
  7.   {
  8.     tweet->censored = GNUNET_NO;
  9.     //POPDBG ("known tweet (both) %s\n", tweet->content);
  10.   }
  11.  
  12.   if (local == GNUNET_NO && remote == GNUNET_NO)
  13.   {
  14.     tweet->censored = GNUNET_SYSERR;
  15.     GNUNET_break (0);
  16.   }
  17.  
  18.   if (local == GNUNET_NO && remote == GNUNET_YES)
  19.   {
  20.     POPDBG ("censored tweet %llu `%s'\n", tweet->id, tweet->content);
  21.     tweet->censored = GNUNET_YES;
  22.   }
  23.  
  24.   if (local == GNUNET_YES && remote == GNUNET_NO)
  25.   {
  26.     tweet->censored = GNUNET_NO;
  27.     //POPDBG ("known tweet (local) %s\n", tweet->content);
  28.   }
  29. }