From 1075994389ea9dc3a632b4ab811bce1ada113272 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sun, 17 Feb 2008 20:49:54 +0000 Subject: 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. --- dmascc/dmascc_cfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dmascc/dmascc_cfg.c') 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; } -- cgit v1.2.3