~ubuntu-branches/ubuntu/trusty/libibverbs/trusty-updates

« back to all changes in this revision

Viewing changes to examples/srq_pingpong.c

  • Committer: Bazaar Package Importer
  • Author(s): Roland Dreier
  • Date: 2009-10-29 14:19:02 UTC
  • mto: (3.1.2 sid) (1.1.5 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20091029141902-0if1qqzgpryp6mhu
Tags: upstream-1.1.3
ImportĀ upstreamĀ versionĀ 1.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
                .ai_socktype = SOCK_STREAM
144
144
        };
145
145
        char *service;
146
 
        char msg[ sizeof "0000:000000:000000"];
 
146
        char msg[sizeof "0000:000000:000000"];
147
147
        int n;
148
148
        int r;
149
149
        int i;
227
227
                .ai_socktype = SOCK_STREAM
228
228
        };
229
229
        char *service;
230
 
        char msg[ sizeof "0000:000000:000000"];
 
230
        char msg[sizeof "0000:000000:000000"];
231
231
        int n;
232
232
        int r;
233
233
        int i;
275
275
                return NULL;
276
276
        }
277
277
 
278
 
        rem_dest = malloc(MAX_QP *sizeof *rem_dest);
 
278
        rem_dest = malloc(MAX_QP * sizeof *rem_dest);
279
279
        if (!rem_dest)
280
280
                goto out;
281
281
 
682
682
 
683
683
        dev_list = ibv_get_device_list(NULL);
684
684
        if (!dev_list) {
685
 
                fprintf(stderr, "No IB devices found\n");
 
685
                perror("Failed to get IB devices list");
686
686
                return 1;
687
687
        }
688
688