File: return-value.patch

package info (click to toggle)
libnet-arp-perl 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 180 kB
  • ctags: 181
  • sloc: ansic: 297; perl: 41; makefile: 26
file content (14 lines) | stat: -rw-r--r-- 423 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Author: Niko Tyni <ntyni@debian.org>
Description: add a missing return value at the end of a non-void function.
 The arp_lookup_linux function currently returns -1 when an error occurs, but
 do nothing when it succeeds.
 This makes the function returns 0 rather than no value.

--- libnet-arp-perl.orig/arp_lookup_linux.c
+++ libnet-arp-perl/arp_lookup_linux.c
@@ -67,4 +67,5 @@
     }
 
     fclose(fp);
+    return 0;
 }