diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2010-11-30 09:52:25 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2010-11-30 09:52:25 -0500 |
commit | 00c01560f3a354152faf36f1919792cfa5ab0770 (patch) | |
tree | cd2836fc1e654c82656a5162baadad802a104360 | |
parent | fc1f8907e4049422d2b620409563146067f892ba (diff) | |
download | NetNuke2-00c01560f3a354152faf36f1919792cfa5ab0770.tar.gz |
Comments removed and slight cleanup
-rw-r--r-- | netnuke.c | 17 |
1 files changed, 2 insertions, 15 deletions
@@ -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); |