aboutsummaryrefslogtreecommitdiff
path: root/netnuke.c
diff options
context:
space:
mode:
Diffstat (limited to 'netnuke.c')
-rw-r--r--netnuke.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/netnuke.c b/netnuke.c
index 1c82fd8..281aaf2 100644
--- a/netnuke.c
+++ b/netnuke.c
@@ -41,11 +41,7 @@ int verbose_flag = 0;
int bus_mask = 0;
int device_timeout = 0;
char** bus_flags = NULL;
-/*
-struct tm *logtm;
-time_t logtime;
-char timestr[64];
-*/
+
static struct option long_options[] =
{
{"help", no_argument, 0, 0},
@@ -128,7 +124,7 @@ int main(int argc, char* argv[])
{
if((nnlogcleanup()) != 0)
{
- printf("Failed to cleanup %s: %s\n", NNLOGFILE, strerror(errno));
+ fprintf(strerr, "Failed to cleanup %s: %s\n", NNLOGFILE, strerror(errno));
}
COM(self, "Program start\n");
@@ -203,15 +199,6 @@ int main(int argc, char* argv[])
scanbus(device, bus_mask);
nnrandinit();
-/*
- nndevice_t device[] = {
- {"./test", 512,20468,1048000},
- {"./test1",512,20468,1048000},
- {"./test2",512,20468,1048000},
- {"./test3",512,20468,1048000},
- {0,0,0,0}
- };
-*/
COM(self, "Initializing mutex\n");
pthread_mutex_init(&lock_global, NULL);