Changeset b66394d in rtems


Ignore:
Timestamp:
Mar 22, 2016, 3:17:41 PM (4 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
50b73d3
Parents:
020c4c0
git-author:
Joel Sherrill <joel@…> (03/22/16 15:17:41)
git-committer:
Joel Sherrill <joel@…> (03/24/16 16:41:21)
Message:

sp13/task1.c: Remove warning for misleading indentation

Fix a block of off-by-one indentation and add braces to clarify
intention.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/sp13/task1.c

    r020c4c0 rb66394d  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2011, 2016.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    340340      1 * rtems_clock_get_ticks_per_second()
    341341    );
    342    directive_failed(status, "rtems_message_queue_receive exact size");
    343    if (size != queue_size) {
    344      puts("TA1 - exact size size match failed");
    345      rtems_test_exit(1);
    346    }
    347 
    348    if (memcmp(big_send_buffer, big_receive_buffer, size) != 0) {
    349      puts("TA1 - exact size data match failed");
    350      rtems_test_exit(1);
    351    }
    352 
    353    for (cp = (big_receive_buffer + size);
    354         cp < (big_receive_buffer + sizeof(big_receive_buffer));
    355         cp++)
    356     if (*cp != 'Z') {
    357       puts("TA1 - exact size overrun match failed");
     342    directive_failed(status, "rtems_message_queue_receive exact size");
     343    if (size != queue_size) {
     344      puts("TA1 - exact size size match failed");
    358345      rtems_test_exit(1);
    359346    }
    360347
    361     /* all done with this one; delete it */
    362     status = rtems_message_queue_delete( Queue_id[ 1 ] );
    363     directive_failed( status, "rtems_message_queue_delete" );
     348    if (memcmp(big_send_buffer, big_receive_buffer, size) != 0) {
     349      puts("TA1 - exact size data match failed");
     350      rtems_test_exit(1);
     351    }
     352
     353    for (cp = (big_receive_buffer + size);
     354         cp < (big_receive_buffer + sizeof(big_receive_buffer));
     355         cp++) {
     356     if (*cp != 'Z') {
     357       puts("TA1 - exact size overrun match failed");
     358       rtems_test_exit(1);
     359     }
     360   }
     361
     362   /* all done with this one; delete it */
     363   status = rtems_message_queue_delete( Queue_id[ 1 ] );
     364   directive_failed( status, "rtems_message_queue_delete" );
    364365  }
    365366
Note: See TracChangeset for help on using the changeset viewer.