# generated from http://www.iana.org/assignments/enterprise-numbers
# run "tools/make-sminmpec.pl [infile]" to regenerate
#
+# The format used here is: <NUMERICAL_ID><SPACE><NAME>
+# Where SPACE can be any sequence of spaces and tabs.
+#
# (last updated 2017-07-14)
0 Reserved
* Miscellaneous functions
*/
-static char *
-remove_comment_and_strip_line(char *buf)
-{
- char *tok;
-
- if ((tok = strchr(buf, '#')))
- *tok = '\0';
- return g_strstrip(buf);
-}
-
static int
fgetline(char **buf, int *size, FILE *fp)
{
static void
parse_enterprises_line (char *line)
{
- char *str, *dec_str, *org_str;
+ char *tok, *dec_str, *org_str;
guint32 dec;
- str = remove_comment_and_strip_line(line);
- dec_str = strtok(str, "\t");
+ if ((tok = strchr(line, '#')))
+ *tok = '\0';
+ dec_str = strtok(line, " \t");
if (!dec_str)
return;
- org_str = strtok(NULL, "\t");
+ org_str = strtok(NULL, ""); /* everything else */
+ if (org_str)
+ org_str = g_strstrip(org_str);
if (!org_str)
return;
if (!ws_strtou32(dec_str, NULL, &dec))
# generated from http://www.iana.org/assignments/enterprise-numbers
# run "tools/make-sminmpec.pl [infile]" to regenerate
#
+# The format used here is: <NUMERICAL_ID><SPACE><NAME>
+# Where SPACE can be any sequence of spaces and tabs.
+#
# $last_updated
$body
_SMINMPEC