Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37558780
en ru br
ALT Linux repos
5.0: 1.67-alt1
4.1: 1.67-alt1
4.0: 1.67-alt1
3.0: 1.67-alt1

Group :: System/Configuration/Hardware
RPM: toshset

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: toshset-1.67-alt-gcc34.patch
Download


--- toshset-1.67/cdsMath.cc.orig	2004-09-06 10:21:10 +0600
+++ toshset-1.67/cdsMath.cc	2005-01-25 18:46:00 +0500
@@ -1,6 +1,7 @@
 
 //#include <sthead.hh>
 #include <cdsMath.hh>
+#include <stdlib.h>
 
 namespace CDS {
 
--- toshset-1.67/toshset.cc.orig	2004-09-06 10:21:10 +0600
+++ toshset-1.67/toshset.cc	2005-01-25 18:42:53 +0500
@@ -1048,10 +1048,14 @@
    if ((*s)[0]=='0' &&
        tolower((*s)[1])=='x') {
      IStringStream is( (*s)+2 );
-     is >> hex >> reg.ecx;
+     unsigned int t;
+     is >> hex >> t;
+     reg.ecx = t;
    } else {
      IStringStream is( *s );
-     is >> reg.ecx;
+     unsigned int t;
+     is >> hex >> t;
+     reg.ecx = t;
    }
    cout << "setting lba to " << reg.ecx << '\n';
    int ret = HciFunction( &reg );
@@ -1094,10 +1098,14 @@
    if ((*s)[0]=='0' &&
 	 tolower((*s)[1])=='x') {
      IStringStream is( (*s)+2 );
-     is >> hex >> reg.ecx;
+     unsigned int t;
+     is >> hex >> t;
+     reg.ecx = t;
    } else {
      IStringStream is( *s );
-     is >> reg.ecx;
+     unsigned int t;
+     is >> t;
+     reg.ecx = t;
    }
    String type = "invalid";
    switch (hibInfoMode) {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin