Comparison warn

This commit is contained in:
dcp1990 2004-11-29 03:47:31 +00:00
parent baed4e6bf8
commit 33af8943d4

View file

@ -2,10 +2,10 @@
* RSMeter - read from 22-168A series meters. See README for details. * RSMeter - read from 22-168A series meters. See README for details.
* By Dan Ponte * By Dan Ponte
*/ */
/* $Amigan: rsmeter/src/main.c,v 1.4 2004/10/28 20:18:05 dcp1990 Exp $ */ /* $Amigan: rsmeter/src/main.c,v 1.5 2004/11/29 03:47:31 dcp1990 Exp $ */
#include "rsmeter.h" #include "rsmeter.h"
short metertimeout = 12; short metertimeout = 12;
char cvsid[] = "$Amigan: rsmeter/src/main.c,v 1.4 2004/10/28 20:18:05 dcp1990 Exp $"; char cvsid[] = "$Amigan: rsmeter/src/main.c,v 1.5 2004/11/29 03:47:31 dcp1990 Exp $";
char* logfi; char* logfi;
time_t now, metertime = 0; time_t now, metertime = 0;
void usage(char* whatcalled) void usage(char* whatcalled)
@ -80,8 +80,8 @@ int main(int argc, char* argv[])
void setser(char* ourname) void setser(char* ourname)
{ {
struct termios tr; struct termios tr;
if(strcmp(dev, "/dev/cu") == NULL && strcmp(dev, "/dev/ttyS") == NULL && strcmp(dev, "/dev/ttyd") if(strcmp(dev, "/dev/cu") != 0 && strcmp(dev, "/dev/ttyS") != 0 && strcmp(dev, "/dev/ttyd")
== NULL) { != 0) {
fprintf(stderr, "%s: %s not a serial device.\n", ourname, dev); fprintf(stderr, "%s: %s not a serial device.\n", ourname, dev);
exit(1); exit(1);
} }