diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2008-02-17 20:49:54 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-02-17 20:49:54 +0000 |
commit | 1075994389ea9dc3a632b4ab811bce1ada113272 (patch) | |
tree | d938505e071fb99369ef062676f35c628cf63be9 | |
parent | 334dcd22baa8b8a1c355e3ee712590b3fe838538 (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.c | 4 |
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(¶m, 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; } |