File: osptransapi.c.patch

package info (click to toggle)
osptoolkit 4.13.0-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 3,368 kB
  • ctags: 4,742
  • sloc: ansic: 42,300; makefile: 265; sh: 49
file content (25 lines) | stat: -rw-r--r-- 862 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Changes for gcc and ABI issues.
Forwarded: no
From: Di-Shi Sun <di-shi@transnexus.com>
Last-Update: 2017-02-13 

--- a/src/osptransapi.c
+++ b/src/osptransapi.c
@@ -983,7 +983,7 @@
             /* sample mean - have to cast Samples to a float to get some precision on the mean */
             mean = ((metrics.mean * currnumber) + (ospvMean * ospvSamples)) / (float)metrics.samples;
 
-            OSPM_ISNAN(metrics.mean, tnisnan);
+            OSPM_ISNAN(((float)metrics.mean), tnisnan);
 
             if (tnisnan) {
                 errcode = OSPC_ERR_TRAN_INVALID_CALC;
@@ -5297,7 +5297,7 @@
     return errcode;
 }
 
-int OSPPTransactionSetSrcServiceProvider(
+int OSPPTransactionSetServiceProvider(
     OSPTTRANHANDLE ospvTransaction,     /* In - Transaction handle */
     const char *ospvServiceProvider)    /* In - Service provider */
 {