Linux HAM/Amateur Radio development
 help / color / mirror / Atom feed
From: Bernard Pidoux <bpidoux@free.fr>
To: linux-hams <linux-hams@vger.kernel.org>,
	C Schuman <k4gbb1@embarqmail.com>,
	Jerry DeLong <KD4YAL@tampabay.rr.com>,
	Ray Wells <vk2tv@exemail.com.au>,
	Terry Dawson VK2KTJ <terry@animat>
Subject: [PATCH] net-tools-1.60-23 hostname
Date: Sat, 21 Nov 2009 17:58:15 +0100	[thread overview]
Message-ID: <4B081C27.3060903@free.fr> (raw)

[-- 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;
     }
 }
 

                 reply	other threads:[~2009-11-21 16:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B081C27.3060903@free.fr \
    --to=bpidoux@free.fr \
    --cc=KD4YAL@tampabay.rr.com \
    --cc=k4gbb1@embarqmail.com \
    --cc=linux-hams@vger.kernel.org \
    --cc=terry@animat \
    --cc=vk2tv@exemail.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox