aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2010-11-30 09:52:25 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2010-11-30 09:52:25 -0500
commit00c01560f3a354152faf36f1919792cfa5ab0770 (patch)
treecd2836fc1e654c82656a5162baadad802a104360
parentfc1f8907e4049422d2b620409563146067f892ba (diff)
downloadNetNuke2-00c01560f3a354152faf36f1919792cfa5ab0770.tar.gz
Comments removed and slight cleanup
-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);