pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/ham/linpsk Don't expect pointers to have a sign.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dc6bcad1e4f7
branches:  trunk
changeset: 356289:dc6bcad1e4f7
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Dec 25 21:45:09 2016 +0000

description:
Don't expect pointers to have a sign.

diffstat:

 ham/linpsk/distinfo                     |  10 +++++-----
 ham/linpsk/patches/patch-ac             |  22 ++++++++++++++++++----
 ham/linpsk/patches/patch-af             |  20 +++++++++++++++++++-
 ham/linpsk/patches/patch-ai             |  13 +++++++++----
 ham/linpsk/patches/patch-src_csound.cpp |  13 +++++++++++--
 5 files changed, 62 insertions(+), 16 deletions(-)

diffs (154 lines):

diff -r 44a88523aa3e -r dc6bcad1e4f7 ham/linpsk/distinfo
--- a/ham/linpsk/distinfo       Sun Dec 25 21:44:35 2016 +0000
+++ b/ham/linpsk/distinfo       Sun Dec 25 21:45:09 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2015/11/02 23:57:24 agc Exp $
+$NetBSD: distinfo,v 1.12 2016/12/25 21:45:09 joerg Exp $
 
 SHA1 (linpsk-0.8.1.tar.gz) = d55d8c793ecd3a4395603ebdd8e795f1dc4d20f9
 RMD160 (linpsk-0.8.1.tar.gz) = 975bbdfc0b63e516f1d5fdfe6baf10fa12899219
@@ -6,12 +6,12 @@
 Size (linpsk-0.8.1.tar.gz) = 435463 bytes
 SHA1 (patch-aa) = ac3c504022d495c619056ad0e5fd7b8e9ff6f71c
 SHA1 (patch-ab) = 0cc21222e30d9122657e5c373b19af15c39eb883
-SHA1 (patch-ac) = 5be307963474f6879490185b47bed6e50dd51ffe
+SHA1 (patch-ac) = 2cc23f7f42af6df2d3af0ba68713be013361efab
 SHA1 (patch-ad) = d9a62afada11b17730e4457e73fef7e21b8bee62
-SHA1 (patch-af) = 785bf818f14b1e733321a8e6cc0f998883cffe4a
+SHA1 (patch-af) = 42d771ce553c28161d9b3150ccf27cf307c46a54
 SHA1 (patch-ag) = 490d53c18ec1cb3961e7d49ec8f551c386bcec6a
-SHA1 (patch-ai) = 192112a67a4ad8d70d4f71fbb1390a1fb26d7496
-SHA1 (patch-src_csound.cpp) = 38897d8b3b07bb3e05215a2b5d49f7aa1d02c451
+SHA1 (patch-ai) = 89f07e76e87929fff4d16ca23725168c4e4ce215
+SHA1 (patch-src_csound.cpp) = 83051275a23627adc242b46661c2d4f844558eee
 SHA1 (patch-src_csound.h) = 7d7d367ee152afc8bbf7cd3e8bf3179f1d911dcc
 SHA1 (patch-src_portaudio_pa__unix__oss.c) = eb3303ed554921d98c869c457172f7f346a7b850
 SHA1 (patch-src_textinput.cpp) = e9a3881bad34d56da61881d23a7ee2b6cc52f6bb
diff -r 44a88523aa3e -r dc6bcad1e4f7 ham/linpsk/patches/patch-ac
--- a/ham/linpsk/patches/patch-ac       Sun Dec 25 21:44:35 2016 +0000
+++ b/ham/linpsk/patches/patch-ac       Sun Dec 25 21:45:09 2016 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-ac,v 1.2 2005/08/15 14:03:53 wulf Exp $
+$NetBSD: patch-ac,v 1.3 2016/12/25 21:45:09 joerg Exp $
 
---- src/crxdisplay.cpp.orig    2005-03-12 03:49:18.000000000 +1030
-+++ src/crxdisplay.cpp 2005-08-15 05:36:46.000000000 +0930
+--- src/crxdisplay.cpp.orig    2005-03-11 17:19:18.000000000 +0000
++++ src/crxdisplay.cpp
 @@ -27,7 +27,7 @@
  #include <qstyle.h>
  #include <qpalette.h>
@@ -11,7 +11,12 @@
  
  #include "crecording.h"
  #include "crxchannel.h"
-@@ -68,7 +68,7 @@
+@@ -64,11 +64,11 @@ void MyTabBar::paintLabel ( QPainter *p,
+         flags |= QStyle::Style_HasFocus;
+ 
+   QColorGroup Cg=colorGroup();
+-    if (Farbe > 0)
++    if (Farbe)
       {
         int position=t->identifier();
         if ( position >= 0 && position < Farbe->size() ) 
@@ -20,3 +25,12 @@
       } 
      style().drawControl( QStyle::CE_TabBarLabel, p, this, br,
                            Cg,
+@@ -236,7 +236,7 @@ if ( Sound == 0 )
+       Sound = new CSound(settings.serial);
+     
+   }
+-if ( Sound <= 0 )
++if ( Sound == 0 )
+   return false;
+ m_pDec2InPtr=dec2fir;
+ 
diff -r 44a88523aa3e -r dc6bcad1e4f7 ham/linpsk/patches/patch-af
--- a/ham/linpsk/patches/patch-af       Sun Dec 25 21:44:35 2016 +0000
+++ b/ham/linpsk/patches/patch-af       Sun Dec 25 21:45:09 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-af,v 1.3 2012/07/03 18:06:38 joerg Exp $
+$NetBSD: patch-af,v 1.4 2016/12/25 21:45:09 joerg Exp $
 
 --- src/linpsk.cpp.orig        2005-03-11 17:21:20.000000000 +0000
 +++ src/linpsk.cpp
@@ -20,6 +20,24 @@
    settings.RxChannels++;
    RxDisplay->RxFreq->setAfcDisplayMode(settings.ActChannel->AfcProperties());
    }
+@@ -505,7 +507,7 @@ if ( Modulator != 0 )
+    }   
+ else  
+   {
+-    if (Sound > 0)
++    if (Sound)
+      Sound->PTT(false); 
+     if (RxDisplay->start_process_loop())
+      {
+@@ -602,7 +604,7 @@ if (settings.DemoMode)
+ else
+    Sound = new CSound(settings.serial);
+ 
+-if ( Sound <= 0 )
++if ( Sound == 0 )
+   {
+     QMessageBox::critical(0," Programm Error! LinPsk","Could not create Sound Device for Output");
+     TxDisplay->TxFunctions->RXTX->setStatus(ON);
 @@ -781,7 +783,8 @@ if (Param != 0)
      RxDisplay->RxFreq->setAfcDisplayMode(settings.ActChannel->AfcProperties());
      RxDisplay->RxFreq->setAfcMode(settings.ActChannel->getAfcMode());
diff -r 44a88523aa3e -r dc6bcad1e4f7 ham/linpsk/patches/patch-ai
--- a/ham/linpsk/patches/patch-ai       Sun Dec 25 21:44:35 2016 +0000
+++ b/ham/linpsk/patches/patch-ai       Sun Dec 25 21:45:09 2016 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-ai,v 1.2 2005/08/15 14:03:53 wulf Exp $
+$NetBSD: patch-ai,v 1.3 2016/12/25 21:45:09 joerg Exp $
 
---- src/spectrumdisplay.cpp.orig       2005-03-13 20:32:03.000000000 +1030
-+++ src/spectrumdisplay.cpp    2005-08-15 07:24:05.000000000 +0930
+--- src/spectrumdisplay.cpp.orig       2005-03-13 10:02:03.000000000 +0000
++++ src/spectrumdisplay.cpp
 @@ -21,6 +21,8 @@
  #include <qpainter.h>
  #include <qsplitter.h>
@@ -11,7 +11,12 @@
  #include "spectrumdisplay.h"
  #include "crxchannel.h"
  #include "parameter.h"
-@@ -178,7 +180,7 @@
+@@ -174,11 +176,11 @@ p.setBrush(white);
+ 
+   for (CRxChannel *pRx=settings.ChannelChain;pRx != 0;pRx= pRx->getNextChannel())
+   {
+-    if ( Farbe > 0)
++    if ( Farbe )
       {
         int ID = pRx->getID();
         if ( ID >= 0 && ID < Farbe->size() )
diff -r 44a88523aa3e -r dc6bcad1e4f7 ham/linpsk/patches/patch-src_csound.cpp
--- a/ham/linpsk/patches/patch-src_csound.cpp   Sun Dec 25 21:44:35 2016 +0000
+++ b/ham/linpsk/patches/patch-src_csound.cpp   Sun Dec 25 21:45:09 2016 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-src_csound.cpp,v 1.1 2013/03/02 18:06:22 joerg Exp $
+$NetBSD: patch-src_csound.cpp,v 1.2 2016/12/25 21:45:09 joerg Exp $
 
---- src/csound.cpp.orig        2013-02-28 22:13:24.000000000 +0000
+--- src/csound.cpp.orig        2005-02-20 10:05:46.000000000 +0000
 +++ src/csound.cpp
 @@ -81,7 +81,7 @@ return 0; 
    
@@ -11,3 +11,12 @@
  {
  stream=0;
  audio_buffer.maxbuf=3*BUF_SIZE; // We take 3 buffers
+@@ -92,7 +92,7 @@ output=false;
+ }
+ CSound::~CSound()
+ {
+-if ( audio_buffer.audiobuffer >0)
++if ( audio_buffer.audiobuffer )
+       delete audio_buffer.audiobuffer;
+ }
+ 



Home | Main Index | Thread Index | Old Index