Skip to content

Commit 87523ab

Browse files
author
Thomas G. Lockhart
committed
Comment fixes from Larry Rosenman" <ler@lerctr.org>.
1 parent 8a35cbe commit 87523ab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

contrib/mac/ouiparse.awk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: ouiparse.awk,v 1.1 2000/08/23 06:02:23 thomas Exp $
1+
# $Id: ouiparse.awk,v 1.2 2000/08/23 13:44:14 thomas Exp $
22
#
33
# ouiparse.awk
44
# Author: Lawrence E. Rosenman <ler@lerctr.org>
@@ -10,10 +10,9 @@
1010
# manufacturer text);
1111
# the table name is set by setting the AWK variable TABLE
1212
#
13-
# we translate the character apostrophe (') to space inside the company name
14-
# to avoid SQL errors.
13+
# we translate the character apostrophe (') to double apostrophe ('') inside
14+
# the company name to avoid SQL errors.
1515
#
16-
# match ONLY lines that begin with 2 hex numbers, -, and another hex number
1716

1817
BEGIN {
1918
TABLE="macoui";
@@ -27,6 +26,7 @@ END {
2726
printf "COMMIT TRANSACTION;";
2827
}
2928

29+
# match ONLY lines that begin with 2 hex numbers, -, and another hex number
3030
/^[0-9a-fA-F][0-9a-fA-F]-[0-9a-fA-F]/ {
3131
# if (nrec >= 100) {
3232
# printf "COMMIT TRANSACTION;";
@@ -47,7 +47,7 @@ END {
4747
Company=Company " " $i;
4848
# Modify any apostrophes (') to avoid grief below.
4949
gsub("'","''",Company);
50-
# Print out for the 'C' structure in mac.c
50+
# Print out for the SQL table insert
5151
printf "INSERT INTO %s (addr, name) VALUES (trunc(macaddr \'%s\'),\'%s\');\n",
5252
TABLE,OUI,Company;
5353
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy