Sisyphus repository
Last update: 13 october 2019 | SRPMs: 17515 | Visits: 15264027
en ru br
ALT Linux repos
S:1.0.11-alt5
5.0: 1.0.11-alt1
4.1: 1.0.0-alt0.svn.r300
4.0: 1.0.0-alt0.svn.r300

Group :: System/Libraries
RPM: libfreebob

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: libfreebob-1.0.11-alt-gcc.patch
Download


diff --git a/libfreebob/src/configrom.cpp b/libfreebob/src/configrom.cpp
index 52547c0..b77db1c 100644
--- a/libfreebob/src/configrom.cpp
+++ b/libfreebob/src/configrom.cpp
@@ -98,7 +98,7 @@ ConfigRom::initialize()
                 ( void* )CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA( m_vendorNameKv ),
                 len );
 
-	while ((buf + len - 1) == '\0') {
+	while ((buf + len - 1) == nullptr) {
             len--;
         }
         // \todo XXX seems a bit strage to do this but the nodemgr.c code does
@@ -117,7 +117,7 @@ ConfigRom::initialize()
         memcpy( buf,
                 ( void* )CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA( m_modelNameKv ),
                 len );
-	while ((buf + len - 1) == '\0') {
+	while ((buf + len - 1) == nullptr) {
             len--;
         }
         // \todo XXX for edirol fa-66 it seems somehow broken. see above
diff --git a/libfreebob/tests/test-volume.cpp b/libfreebob/tests/test-volume.cpp
index ad3233f..790d585 100644
--- a/libfreebob/tests/test-volume.cpp
+++ b/libfreebob/tests/test-volume.cpp
@@ -22,6 +22,8 @@
 #include "libfreebobavc/serialize.h"
 #include "libfreebobavc/ieee1394service.h"
 
+#include <errno.h>
+
 const bool bVerbose = false;
 
 short int
@@ -109,7 +111,6 @@ main(int argc, char **argv)
         exit(0);
     }
 
-    int errno = 0;
     char* tail;
     int node_id = strtol( argv[1], &tail, 0 );
     int fb_id   = strtol( argv[2], &tail, 0 );
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin