]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: remove comma operator
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 6 Sep 2011 00:52:52 +0000 (02:52 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Oct 2011 12:22:26 +0000 (14:22 +0200)
Fix typo where the comma operator has been introduced.
Use a semicolon instead so we end up with simple assignment expressions.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
sys-utils/lscpu.c

index 832b4efb5ce2b004c299555285a9c2ce55de80aa..f7e854d86d49f7d1ee654a73138040ec09de71a8 100644 (file)
@@ -1116,8 +1116,8 @@ int main(int argc, char *argv[])
                        } else {
                                columns[ncolumns++] = COL_CPU;
                                columns[ncolumns++] = COL_CORE;
-                               columns[ncolumns++] = COL_SOCKET,
-                               columns[ncolumns++] = COL_NODE,
+                               columns[ncolumns++] = COL_SOCKET;
+                               columns[ncolumns++] = COL_NODE;
                                columns[ncolumns++] = COL_CACHE;
                                compatible = 1;
                        }