[PATCH] net-tools-1.60-23 hostname.c

bernard pidoux f6bvp at free.fr
Sat Nov 21 16:05:53 UTC 2009


Patch corrects the following errors due to a missing 
#include <stdlib.h>
plus a few breaks;


cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/ -Ilib   -c -o
hostname.o hostname.c
hostname.c: In function ‘sethname’:
hostname.c:100: erreur: label at end of compound statement
hostname.c:102: attention : implicit declaration of function ‘exit’
hostname.c:102: attention : incompatible implicit declaration of
built-in function ‘exit’
hostname.c: In function ‘setdname’:
hostname.c:119: erreur: label at end of compound statement
hostname.c:121: attention : incompatible implicit declaration of
built-in function ‘exit’
hostname.c: In function ‘showhname’:
hostname.c:135: attention : incompatible implicit declaration of
built-in function ‘exit’
hostname.c:176: erreur: label at end of compound statement
hostname.c: In function ‘setfilename’:
hostname.c:212: attention : incompatible implicit declaration of
built-in function ‘exit’
hostname.c: In function ‘version’:
hostname.c:219: attention : incompatible implicit declaration of
built-in function ‘exit’
hostname.c: In function ‘usage’:
hostname.c:250: attention : incompatible implicit declaration of
built-in function ‘exit’
hostname.c: In function ‘main’:
hostname.c:343: attention : incompatible implicit declaration of
built-in function ‘exit’
hostname.c:396: attention : incompatible implicit declaration of
built-in function ‘exit’
make: *** [hostname.o] Erreur 1

Bernard Pidoux

-------------- next part --------------
A non-text attachment was scrubbed...
Name: net-tools-1.60-23.hostname.patch
Type: text/x-patch
Size: 760 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-net-tools-maintainers/attachments/20091121/49519854/attachment.bin>


More information about the Pkg-net-tools-maintainers mailing list