metawatch/metawatch.c

30 lines
440 B
C
Raw Normal View History

2011-07-18 22:33:40 +02:00
/*
* (c) 2011 Siegen, Germany by Nils Faerber
*
* license GPL
*/
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "metawatch_protocol.h"
int main(int argc, char **argv)
{
int mwfd;
if (argc != 2) {
fprintf(stderr, "Usage:\n\t%s <devicename>\n", argv[0]);
return 1;
};
mwfd = open(argv[1], O_RDWR);
if (mwfd < 0) {
perror("open");
return 1;
};
return 0;
};