]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/hush.c
Code cleanup: fix old style assignment ambiguities like "=-" etc.
[karo-tx-uboot.git] / common / hush.c
index b43f6185acf5360d335a063fd0405fd82b5ecce9..75c18ce8ae0b58d9273916842ecc78caa9f1e5ac 100644 (file)
@@ -953,7 +953,7 @@ static int b_adduint(o_string *o, unsigned int i)
 
 static int static_get(struct in_str *i)
 {
-       int ch=*i->p++;
+       int ch = *i->p++;
        if (ch=='\0') return EOF;
        return ch;
 }
@@ -1104,7 +1104,7 @@ static int file_get(struct in_str *i)
        ch = 0;
        /* If there is data waiting, eat it up */
        if (i->p && *i->p) {
-               ch=*i->p++;
+               ch = *i->p++;
        } else {
                /* need to double check i->file because we might be doing something
                 * more complicated by now, like sourcing or substituting. */
@@ -1121,7 +1121,7 @@ static int file_get(struct in_str *i)
                        i->__promptme = 0;
 #endif
                        if (i->p && *i->p) {
-                               ch=*i->p++;
+                               ch = *i->p++;
                        }
 #ifndef __U_BOOT__
                } else {