summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2008-02-17 20:49:54 +0000
committerRalf Baechle <ralf@linux-mips.org>2008-02-17 20:49:54 +0000
commit1075994389ea9dc3a632b4ab811bce1ada113272 (patch)
treed938505e071fb99369ef062676f35c628cf63be9
parent334dcd22baa8b8a1c355e3ee712590b3fe838538 (diff)
This only ever "worked" because strncmp happens to be defined as a
macro which supplied the parens needed for an if statment. Strncmp is defined that way on at least some glibc ports, including i386 but not on uClibc/MIPS.
-rw-r--r--dmascc/dmascc_cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dmascc/dmascc_cfg.c b/dmascc/dmascc_cfg.c
index 47b4ac2..c3abbe5 100644
--- a/dmascc/dmascc_cfg.c
+++ b/dmascc/dmascc_cfg.c
@@ -1,5 +1,5 @@
/*
- * $Id: dmascc_cfg.c,v 1.2 2001/05/10 10:44:45 csmall Exp $
+ * $Id: dmascc_cfg.c,v 1.3 2008/02/17 20:49:54 ralf Exp $
*
* Configuration utility for dmascc driver
* Copyright (C) 1997,2000 Klaus Kudielka
@@ -99,7 +99,7 @@ int main(int argc, char *argv[])
memset(&param, 0, sizeof(param));
param.txpause = -1;
- if strncmp(argv[1], "dmascc", 6) {
+ if (strncmp(argv[1], "dmascc", 6)) {
fprintf(stderr, "invalid interface name.\n");
return 5;
}