~ubuntu-branches/ubuntu/trusty/hardinfo/trusty-proposed

« back to all changes in this revision

Viewing changes to network.c

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-11-06 14:14:17 UTC
  • mfrom: (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091106141417-fnpdc0ya7ac8bmsx
Tags: 0.5.1-1ubuntu1
* Merge from debian testing:
  - debian/rules: Don't install anything in /usr/local, otherwise FTBFS.
* debian/control: Add homepage field.
* Add quilt patch system support.
* Add 01-truncated_description.patch to fix LP: #357189 (at least
  partially).

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
      
179
179
      if ((route = popen(command_line, "r"))) {
180
180
        /* eat first two lines */
181
 
        fgets(buffer, 256, route);
182
 
        fgets(buffer, 256, route);
 
181
        (void)fgets(buffer, 256, route);
 
182
        (void)fgets(buffer, 256, route);
183
183
 
184
184
        while (fgets(buffer, 256, route)) {
185
185
          buffer[15] = '\0';
218
218
    
219
219
    if ((arp = fopen("/proc/net/arp", "r"))) {
220
220
      /* eat first line */
221
 
      fgets(buffer, 256, arp);
 
221
      (void)fgets(buffer, 256, arp);
222
222
 
223
223
      while (fgets(buffer, 256, arp)) {
224
224
        buffer[15] = '\0';
325
325
                           "[$ShellParam$]\n"
326
326
                           "ReloadInterval=3000\n"
327
327
                           "ViewType=1\n"
328
 
                           "ColumnTitle$TextValue=Device\n"
 
328
                           "ColumnTitle$TextValue=Interface\n"
329
329
                           "ColumnTitle$Value=IP Address\n"
330
330
                           "ColumnTitle$Extra1=Sent\n"
331
331
                           "ColumnTitle$Extra2=Received\n"