Burton, you can test your getopt_long code on MacOSX.
During the week-end I have committed back getopt_long() because I have noticed the it was removed (by mistake I assume).
Luca
Burton M. Strauss III wrote:
Now, before y'all get jazzed, the problem with long options still exists. Somebody, nameless, of course, changed the getopt_long() call in main.c to getopt().
That's wrong.
But, the issue is finding a system WITHOUT getopt_long, so I can test the workaround and make that work, otherwise, those developers - nameless of course - working on systems without a properly function getopt_long() will just change it back...
So, keep yer shorts on, I'm aware of the issue.
As a minimum, you can change this in main.c:
while((opt = getopt(argc, argv, theOpts)) != EOF) {
to this:
#ifdef HAVE_GETOPT_LONG while((opt = getopt_long(argc, argv, theOpts, long_options, (int *) 0)) != EOF) { #else while((opt = getopt(argc, argv, theOpts)) != EOF) { #endif
-----Burton
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Friday, July 11, 2003 11:04 AM To: [EMAIL PROTECTED] Subject: [Ntop-dev] New ntop commit (author burton)
Update of /export/home/ntop/ntop In directory jabber:/tmp/cvs-serv5015
Modified Files: main.c Log Message:
Fix a bug where a specious invalid parameter was found if the @filename was last on the command line.
e.g. this worked:
ntop @/etc/ntop.conf -u ntop
this might fail, depending upon the contents of the conf file:
ntop -u ntop @/etc/ntop.conf
-----Burton (ref 299)
_______________________________________________ Ntop-dev mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop-dev
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev
-- Luca Deri <[EMAIL PROTECTED]> http://luca.ntop.org/ Hacker: someone who loves to program and enjoys being clever about it - Richard Stallman
_______________________________________________ Ntop-dev mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop-dev
