Linux HAM/Amateur Radio development
 help / color / mirror / Atom feed
* [PATCH] net-tools-1.60-23 hostname
@ 2009-11-21 16:58 Bernard Pidoux
  0 siblings, 0 replies; only message in thread
From: Bernard Pidoux @ 2009-11-21 16:58 UTC (permalink / raw)
  To: linux-hams, C Schuman, Jerry DeLong, Ray Wells,
	Terry Dawson VK2KTJ

[-- Attachment #1: Type: text/plain, Size: 193 bytes --]

Hi,

When compiling the following source 
http://packages.debian.org/sid/net-tools

version 1.60 orig plus -23 patch

I found a few bugs.

Here follows three patches.

73 de Bernard, f6bvp





[-- Attachment #2: net-tools-1.60-23.hostname.patch --]
[-- Type: text/plain, Size: 760 bytes --]

diff -ruN net-tools-1.60-23/hostname.c net-tools-1.60-23/hostname.c
--- net-tools-1.60-23/hostname.c	2001-04-08 19:04:23.000000000 +0200
+++ net-tools-1.60-23/hostname.c	2009-11-21 16:01:09.693168634 +0100
@@ -31,6 +31,7 @@
  *              your option) any later version.
  */
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <getopt.h>
 #include <string.h>
@@ -98,6 +99,7 @@
 	    fprintf(stderr, _("%s: name too long\n"), program_name);
 	    break;
 	default:
+	    break;
 	}
 	exit(1);
     };
@@ -117,6 +119,7 @@
 	    fprintf(stderr, _("%s: name too long\n"), program_name);
 	    break;
 	default:
+	    break;
 	}
 	exit(1);
     };
@@ -174,6 +177,7 @@
 	printf("%s\n", hp->h_name);
 	break;
     default:
+	break;
     }
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-21 16:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-21 16:58 [PATCH] net-tools-1.60-23 hostname Bernard Pidoux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox