Changeset 671 for branches/2.0.8


Ignore:
Timestamp:
Jun 11, 2006, 7:55:56 AM (13 years ago)
Author:
andree
Message:

Replaced *pos++ and *pos-- with pos += 1 and pos -= 1, respectively.
Fixes gcc 4.1.2 warnings 'warning: value computed is not used'. (Really
I think the warnings are bogus, but I wanted to get rid of them and the
changes do not do any harm.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0.8/mondo/mondo/common/libmondo-raid.c

    r670 r671  
    10411041    // trim leading spaces
    10421042    pos = string;
    1043     while (*pos == ' ') *pos++;
     1043    while (*pos == ' ') pos += 1;
    10441044    asprintf(&strtmp, pos);
    10451045    strcpy(string, strtmp);
     
    11991199    } else {
    12001200      while (*pos != ' ') {
    1201         *pos--;
     1201        pos -= 1;
    12021202        if (pos < string) {
    12031203          log_it("String underflow!\n");
     
    12241224    } else {
    12251225      while (*pos != ' ') {
    1226         *pos--;
     1226        pos -= 1;
    12271227        if (pos < string) {
    12281228          printf("ERROR: String underflow!\n");
Note: See TracChangeset for help on using the changeset viewer.