OpenBSD CVS

CVS log for src/sbin/dhclient/Attic/errwarn.c


[BACK] Up to [local] / src / sbin / dhclient

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.25, Sun Feb 12 13:33:19 2017 UTC (7 years, 3 months ago) by krw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.24: +1 -1 lines
FILE REMOVED

Remove now unused file.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Feb 11 16:12:36 2017 UTC (7 years, 3 months ago) by krw
Branch: MAIN
Changes since 1.23: +2 -47 lines
Diff to previous 1.23 (colored)

Move parse_warning() into parse.c to prepare to replace errwarn.c
with standard daemon log.[ch].

ok mpi@

Revision 1.23 / (download) - annotate - [select for diffs], Sat Feb 6 19:30:52 2016 UTC (8 years, 3 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.22: +19 -3 lines
Diff to previous 1.22 (colored)

Eliminate #include inside *.h files and include only needed headers in
each *.c file.

Inspired by mention of header silliness by Edgar Pettijohn and mmcc@
on tech@.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jan 20 10:17:20 2014 UTC (10 years, 4 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.21: +9 -4 lines
Diff to previous 1.21 (colored)

Preserve tabs when constructing the "^" line in parse_warn(). Now
error messages line up the "^" correctly even when tabs are present.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jan 13 02:38:52 2014 UTC (10 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.20: +5 -12 lines
Diff to previous 1.20 (colored)

warning(), note(), debug(), parse_warn() always return 0, which no
caller checks or saves. So just void them all.

Revision 1.20 / (download) - annotate - [select for diffs], Thu May 2 16:35:27 2013 UTC (11 years, 1 month ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.19: +5 -5 lines
Diff to previous 1.19 (colored)

Bunch of comment/whitespace cleanup. Eliminate some misleading or
pointless ones, make multiline comments readable, nuke '...' in
favour of '.', etc.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Dec 4 19:24:03 2012 UTC (11 years, 5 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.18: +7 -61 lines
Diff to previous 1.18 (colored)

Eliminate hand-rolled pseudo-strerror() %m strangeness by replacing
all occurances of %m with strerror(errno). And then nuking do_percentm()
and related buffer shuffling.

Also simplify parse_warn() so it takes a simple char * of the error,
and thus rely on pointing to error location in input for details.

Makes sense to beck@

Revision 1.18 / (download) - annotate - [select for diffs], Thu Nov 15 14:54:18 2012 UTC (11 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.17: +3 -5 lines
Diff to previous 1.17 (colored)

Shuffle #include's to use the majority idiom everywhere - i.e. use
dhcpd.h to pull in most sys/net/netinet/etc. .h file. Eliminate
superfluous #include's.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Nov 26 23:14:29 2009 UTC (14 years, 6 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.16: +1 -3 lines
Diff to previous 1.16 (colored)

Silence dhclient by immediately exiting if the interface doesn't exist
or can't return important flags via ioctl. Excess verbiage pointed out
by deraadt@.

ok henning@

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jun 6 04:02:42 2009 UTC (14 years, 11 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

Nuke debug() unless DEBUG is defined. Elminates debug output from
normal operations.

Prodded by deraadt@ a while ago.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Mar 2 11:31:17 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

caret missing, From: "Matthew R. Dempsky" <mrd@alkemio.org>

Revision 1.14 / (download) - annotate - [select for diffs], Fri Mar 2 11:27:36 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.13: +10 -5 lines
Diff to previous 1.13 (colored)

and the second use of the spaces array might overflow too, in another
way...

Revision 1.13 / (download) - annotate - [select for diffs], Fri Mar 2 11:23:23 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.12: +3 -4 lines
Diff to previous 1.12 (colored)

If a syntax error is found past 80 columns, parse_warn accessed memory
outside of the `spaces' array when trying to print the caret marker
found by "Matthew R. Dempsky" <mrd@alkemio.org>, fix inspired by
a.velichinsky@gmail.com. discussed with krw

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jul 9 14:36:15 2005 UTC (18 years, 10 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.11: +8 -8 lines
Diff to previous 1.11 (colored)

Clean out a few more unused/uninitialized variables.

ok henning@

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 1 02:05:55 2005 UTC (19 years ago) by cloder
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

snprintf returns an int, not a size_t. OK deraadt@

Revision 1.10 / (download) - annotate - [select for diffs], Mon Apr 11 20:04:43 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.9: +10 -10 lines
Diff to previous 1.9 (colored)

use STDERR_FILENO

Revision 1.9 / (download) - annotate - [select for diffs], Mon Apr 11 15:16:29 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored)

handle snprintf returning -1; ok henning

Revision 1.8 / (download) - annotate - [select for diffs], Mon Apr 11 15:16:14 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.7: +18 -9 lines
Diff to previous 1.7 (colored)

use writev; ok henning

Revision 1.7 / (download) - annotate - [select for diffs], Tue May 4 22:23:01 2004 UTC (20 years, 1 month ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

do not overload libc function names causing linker troubles

Revision 1.6 / (download) - annotate - [select for diffs], Fri Mar 5 23:57:16 2004 UTC (20 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.5: +1 -2 lines
Diff to previous 1.5 (colored)

remove even more goo

Revision 1.5 / (download) - annotate - [select for diffs], Sat Feb 7 13:26:35 2004 UTC (20 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.4: +57 -49 lines
Diff to previous 1.4 (colored)

more KNF From: Emil Mikulic <emikulic@dmr.ath.cx>
great job.
no binary change.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Feb 4 12:16:56 2004 UTC (20 years, 4 months ago) by henning
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

$OpenBSD$, tedu

Revision 1.3 / (download) - annotate - [select for diffs], Wed Feb 4 01:26:44 2004 UTC (20 years, 4 months ago) by henning
Branch: MAIN
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored)

unobfuscate varargs shitz

Revision 1.2 / (download) - annotate - [select for diffs], Wed Feb 4 01:18:26 2004 UTC (20 years, 4 months ago) by henning
Branch: MAIN
Changes since 1.1: +78 -86 lines
Diff to previous 1.1 (colored)

8579 lines of KNF, ANSO and zap-junk diff without the resulting binary
changing by a single byte.
partly from theo

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jan 18 01:26:20 2004 UTC (20 years, 4 months ago) by deraadt
Branch: MAIN

this is where dhclient will start surgery

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.