Skip to contentSkip to conversation

net-tools-1.60-23 hostname

PATCH New Bernard Pidoux 1 participant 1 message Nov 21, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net-tools-1.60-23 hostname

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

hostname.c +4 -0
diff -ruN net-tools-1.60-23/hostname.c net-tools-1.60-23/hostname.c
@@ -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;
     }
 }