summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 21ebd28)
raw | patch | inline | side by side (parent: 21ebd28)
author | octo <octo> | |
Thu, 27 Apr 2006 20:52:32 +0000 (20:52 +0000) | ||
committer | octo <octo> | |
Thu, 27 Apr 2006 20:52:32 +0000 (20:52 +0000) |
src/traffic.c | patch | blob | history |
diff --git a/src/traffic.c b/src/traffic.c
index 713b01a4158e41640baa04787e4f1c5d4289b055..07c9ecfbeb1cb990f3c7a9b1f15e8e70b5e9789d 100644 (file)
--- a/src/traffic.c
+++ b/src/traffic.c
while (fgets (buffer, 1024, fh) != NULL)
{
- if (buffer[6] != ':')
+ if (!(dummy = strchr(buffer, ':')))
continue;
- buffer[6] = '\0';
+ dummy[0] = '\0';
+ dummy++;
device = buffer;
while (device[0] == ' ')
if (device[0] == '\0')
continue;
- dummy = buffer + 7;
numfields = strsplit (dummy, fields, 16);
if (numfields < 9)