Ethereal-dev: [Ethereal-dev] packet-sccp.c patch for compilation under Win32

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Motonori Shindo <mshindo@xxxxxxxxxxx>
Date: Thu, 07 Mar 2002 01:22:18 +0900 (JST)
Hi,

The enclosed patch will stop Visual C++ to complain about the lvalue
of assignment.

Regards,

=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
 +----+----+     
 |.. .|    |     Motonori Shindo
 |_~__|    |     
 | .. |~~_~|     Sr. Systems Engineer
 | .  |    |     CoSine Communications Inc.
 +----+----+     
 C o S i n e     e-mail:  mshindo@xxxxxxxxxxxxx 
Communications
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=

Index: packet-sccp.c
===================================================================
RCS file: /cvsroot/ethereal/packet-sccp.c,v
retrieving revision 1.2
diff -u -r1.2 packet-sccp.c
--- packet-sccp.c       2002/03/05 00:09:21     1.2
+++ packet-sccp.c       2002/03/06 10:33:26
@@ -902,7 +902,7 @@
     /* Dissect SSN (if present) */
     if (ssni) {
       ssn = tvb_get_guint8(tvb, offset);
-      called ? called_ssn : calling_ssn = ssn;
+      called ? called_ssn : (calling_ssn = ssn);
 
       proto_tree_add_uint(call_tree, called ? hf_sccp_called_ssn
                                            : hf_sccp_calling_ssn,
@@ -944,7 +944,7 @@
     /* Dissect SSN (if present) */
     if (ssni) {
       ssn = tvb_get_guint8(tvb, offset);
-      called ? called_ssn : calling_ssn = ssn;
+      called ? called_ssn : (calling_ssn = ssn);
 
       proto_tree_add_uint(call_tree, called ? hf_sccp_called_ssn
                                            : hf_sccp_calling_ssn,
This message has been 'sanitized'.  This means that potentially
dangerous content has been rewritten or removed.  The following
log describes which actions were taken.

Sanitizer (start="1015431749"):
  Replaced MIME boundary: >>--Next_Part--<<
                    with: >>MIMEStream=_0+174182_8252739656192_1530492641<<
  Writer (pos="1144"):
    Total modifications so far: 1

  Part (pos="1190"):
    SanitizeFile (filename="unnamed.txt", mimetype="Text/Plain"):
      Match (rule="2"):
        Enforced policy: accept

  Part (pos="1747"):
    SanitizeFile (filename="packet-sccp.c.diff", mimetype="Text/Plain"):
      Match (rule="default"):
        Enforced policy: accept


Anomy 0.0.0 : Sanitizer.pm
$Id: Sanitizer.pm,v 1.32 2001/10/11 19:27:15 bre Exp $