Skip to content

Commit 08092d9

Browse files
committed
Copied correlator field from WQ/WTAS structures into WTID for easier linkage
1 parent c2c3d69 commit 08092d9

File tree

8 files changed

+10
-4
lines changed

8 files changed

+10
-4
lines changed

bin/aix/mqsmfcsv

838 Bytes
Binary file not shown.

bin/linux/mqsmfcsv

0 Bytes
Binary file not shown.

bin/win/convH.exe

0 Bytes
Binary file not shown.

bin/win/mqsmfcsv.exe

-70.9 KB
Binary file not shown.

mqsmfcsv.doc

512 Bytes
Binary file not shown.

src/mqsmf.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ int main( int argc, char *argv[] )
136136
int qTriplet;
137137
char *p;
138138
qwhs *pqwhs;
139+
unsigned char correlid[16];
139140

140141
BOOL error = FALSE;
141142
BOOL knownSubType = TRUE;
@@ -663,8 +664,7 @@ int main( int argc, char *argv[] )
663664

664665
case 1:
665666
case 2:
666-
p = &dataBuf[triplet[1].offset ];
667-
printWTID((wtid *)p);
667+
memset(correlid,0,16);
668668

669669
/*****************************************************************/
670670
/* The queue records may or may not exist in subtype 1 records. */
@@ -678,6 +678,7 @@ int main( int argc, char *argv[] )
678678
{
679679
p = &dataBuf[triplet[2].offset ];
680680
printWTAS((wtas *)p);
681+
memcpy(correlid,&((wtas *)p)->wtasstrt,16);
681682

682683
if (conv32(((wtas *)p)->wtaswqct) > 0)
683684
qTriplet = 3;
@@ -696,8 +697,12 @@ int main( int argc, char *argv[] )
696697
{
697698
p = &dataBuf[triplet[qTriplet].offset + triplet[qTriplet].l * i];
698699
printWQ((wq *)p);
700+
memcpy(correlid,((wq *)p)->correl,16);
699701
}
700702
}
703+
p = &dataBuf[triplet[1].offset ];
704+
printWTID((wtid *)p,correlid);
705+
701706
break;
702707

703708

src/mqsmf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ extern void printQSST (qsst *);
149149
extern void printQTST (qtst *);
150150
extern void printWQ (wq *);
151151
extern void printWTAS (wtas *);
152-
extern void printWTID (wtid *);
152+
extern void printWTID (wtid *, unsigned char *);
153153

154154
extern void openDDL (char *);
155155
extern void closeDDL (void);

src/printWTID.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414

1515
SMFPRINTGLOB;
1616

17-
void printWTID(wtid *p)
17+
void printWTID(wtid *p, unsigned char *correlid)
1818
{
1919
SMFPRINTSTART("WTID", p, conv16(p->wtidlen));
2020

21+
ADDSTRB ("WTAS_Correlator",correlid,16);
2122
ADDSTR ("Appl_Type", strConnType(conv32(p->wtidatyp)),16);
2223
ADDSTREN("Connection_Name", p->wtidccn, 8);
2324
ADDSTREN("Operator_ID", p->wtidopid,8);

0 commit comments

Comments
 (0)