SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
21
net/pchar/patches/patch-main_cc
Normal file
21
net/pchar/patches/patch-main_cc
Normal file
|
@ -0,0 +1,21 @@
|
|||
Index: main.cc
|
||||
--- main.cc.orig
|
||||
+++ main.cc
|
||||
@@ -292,7 +292,7 @@ char *GetAddressFamily()
|
||||
//
|
||||
// Output: ASCII representation of network protocol name.
|
||||
//
|
||||
-char *GetPrintableNetworkProtocol(NetworkProtocolType np)
|
||||
+const char *GetPrintableNetworkProtocol(NetworkProtocolType np)
|
||||
{
|
||||
switch (np) {
|
||||
case (NetworkProtocolIpv4Udp):
|
||||
@@ -371,7 +371,7 @@ int main(int argc, char **argv)
|
||||
case 'b': {
|
||||
Burst = atoi(optarg);
|
||||
if (Burst < 1) {
|
||||
- fprintf(stderr, "Warning: burst size %d too small; resetting to 1\n");
|
||||
+ fprintf(stderr, "Warning: burst size %d too small; resetting to 1\n", Burst);
|
||||
Burst = 1;
|
||||
}
|
||||
break;
|
Loading…
Add table
Add a link
Reference in a new issue