~ubuntu-branches/ubuntu/wily/glusterfs/wily

« back to all changes in this revision

Viewing changes to rpc/rpc-lib/src/rpcsvc.c

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi
  • Date: 2011-06-26 21:00:42 UTC
  • mfrom: (1.3.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20110626210042-ps1aim0cwz06tkx1
Tags: 3.2.1-1
* New upstream release.
  - Refresh patch 02-spelling-error.
* Wrap dependencies.
* Merge libglusterfs0 and libglusterfs-dev package to glusterfs-common.
  Closes: #630147
* Use python-module.mk and remove useless python bytecode files.
  Closes: #630146

Show diffs side-by-side

added added

removed removed

Lines of Context:
1126
1126
 
1127
1127
        switch (listener->trans->myinfo.sockaddr.ss_family) {
1128
1128
        case AF_INET:
 
1129
                listener_port = ((struct sockaddr_in *)&listener->trans->myinfo.sockaddr)->sin_port;
 
1130
                break;
 
1131
 
 
1132
        case AF_INET6:
1129
1133
                listener_port = ((struct sockaddr_in6 *)&listener->trans->myinfo.sockaddr)->sin6_port;
1130
1134
                break;
1131
1135
 
1132
 
        case AF_INET6:
1133
 
                listener_port = ((struct sockaddr_in *)&listener->trans->myinfo.sockaddr)->sin_port; 
1134
 
                break;
1135
 
 
1136
1136
        default:
1137
1137
                gf_log (GF_RPCSVC, GF_LOG_DEBUG,
1138
1138
                        "invalid address family (%d)",