debian/dhcpd-pools.git
13 years agoNot a syscall error, warn should be warnx.
Sami Kerola [Sat, 22 Jan 2011 20:29:48 +0000 (21:29 +0100)]
Not a syscall error, warn should be warnx.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoUse what libc will provide
Sami Kerola [Sat, 22 Jan 2011 19:53:15 +0000 (20:53 +0100)]
Use what libc will provide

The eprintf removed and replaced with err & warn. Option parsing
no longer tries to find missing optargs, which are getopts should
notice. Few complier warnings got to be removed as well. Finally
the commments will no longer exceed standard terminal width.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoOptimization on basis of gcov
Sami Kerola [Sat, 22 Jan 2011 17:24:45 +0000 (18:24 +0100)]
Optimization on basis of gcov

Code blocks to more common first order. Also couple checks got to
be refactored next to section where update happens, that will
reduce unnecessary checking.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoThe xml output is dirty and marked as FIXME
Sami Kerola [Sat, 22 Jan 2011 12:06:04 +0000 (13:06 +0100)]
The xml output is dirty and marked as FIXME

The xml output does not use output file as all other outputs, it
has sections here and there while everything is supposed to be in
output.c, and finally the unnecessary field analysis loop made
program about 20% slower when xml was not asked.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoArithmetic comparisons to be same way around
Sami Kerola [Sat, 22 Jan 2011 11:35:18 +0000 (12:35 +0100)]
Arithmetic comparisons to be same way around

In writing arithmetic comparisons, use "<" and "<=" rather than
">" and ">=". For some justification, read this:

http://thread.gmane.org/gmane.comp.version-control.git/3903/focus=4126

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoAutomake 2.64 is needed.
Sami Kerola [Sat, 22 Jan 2011 11:09:33 +0000 (12:09 +0100)]
Automake 2.64 is needed.

This is due AC_PACKAGE_URL that is used in AC_INIT, see release
announcement for details.

http://lists.gnu.org/archive/html/autoconf/2009-07/msg00079.html

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoFix to range dynamic-bootp specifier
Sami Kerola [Sat, 22 Jan 2011 11:06:34 +0000 (12:06 +0100)]
Fix to range dynamic-bootp specifier

Rely on inet_aton return value instead of some unreliable
conversion result after first syscall failed.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoAfter fopen in ouput ioctl does like /dev/null which cause v2.13
Sami Kerola [Fri, 21 Jan 2011 23:14:52 +0000 (00:14 +0100)]
After fopen in ouput ioctl does like /dev/null which cause
ENOTTY, and clean_up will see that without this reset. At least
linux does this, and possibly some other systems. There's a
report from FreeBSD 8.0 which matches quite well with the
symptom.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoProper .gitignore files
Sami Kerola [Fri, 21 Jan 2011 22:03:22 +0000 (23:03 +0100)]
Proper .gitignore files

The standard stuff that is needed in ignore files to make git
status etc commands not to freak out after a build.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoOops adding empty m4 directory did not work.
Sami Kerola [Fri, 21 Jan 2011 21:49:37 +0000 (22:49 +0100)]
Oops adding empty m4 directory did not work.

The m4 has now .gitignore without content. That should work just
fine as a place holder director for automake.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoThe automake missed local m4 directory and libtool init.
Sami Kerola [Fri, 21 Jan 2011 21:42:43 +0000 (22:42 +0100)]
The automake missed local m4 directory and libtool init.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoREADME with test data wanted announcement
Sami Kerola [Fri, 21 Jan 2011 21:22:27 +0000 (22:22 +0100)]
README with test data wanted announcement

The file is also reintended to be more like other files.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoREADME to include quick start.
Sami Kerola [Fri, 21 Jan 2011 21:05:37 +0000 (22:05 +0100)]
README to include quick start.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoChangeLog obsoleted
Sami Kerola [Fri, 21 Jan 2011 19:02:06 +0000 (20:02 +0100)]
ChangeLog obsoleted

See git '(log|show|diff)' for all possible details you would ever
need.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoRest of the automake file deletions.
Sami Kerola [Fri, 21 Jan 2011 18:32:18 +0000 (19:32 +0100)]
Rest of the automake file deletions.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoAll files that autotools will generate are removed.
Sami Kerola [Fri, 21 Jan 2011 18:25:06 +0000 (19:25 +0100)]
All files that autotools will generate are removed.

Who ever will compile the sources is encouraged to use
./autogen.sh to get ./configure and other necessary files.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoREADME and THANKS files to support git
Sami Kerola [Fri, 21 Jan 2011 17:51:27 +0000 (18:51 +0100)]
README and THANKS files to support git

Signed-off-by: Sami Kerola <kerolasa@iki.fi>

13 years agoImport from release candidate 2.13.
Sami Kerola [Fri, 21 Jan 2011 17:15:50 +0000 (18:15 +0100)]
Import from release candidate 2.13.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>