-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maik Broemme contributed gcc warning fixes (break after default: label)
- Loading branch information
Bernd Eckenfels
committed
Oct 11, 2003
1 parent
e02f9d0
commit 17948a9
Showing
2 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,20 +9,19 @@ | |
* dnsdmoainname | ||
* nisdomainname {name|-F file} | ||
* | ||
* Version: hostname 1.96 (1996-02-18) | ||
* Version: hostname 1.101 (2003-10-11) | ||
* | ||
* Author: Peter Tobias <[email protected]> | ||
* | ||
* Changes: | ||
* {1.90} Peter Tobias : Added -a and -i options. | ||
* {1.91} Bernd Eckenfels : -v,-V rewritten, long_opts | ||
* (major rewrite), usage. | ||
*960120 {1.95} Bernd Eckenfels : -y/nisdomainname - support for get/ | ||
* setdomainname added | ||
*960218 {1.96} Bernd Eckenfels : netinet/in.h added | ||
*980629 {1.97} Arnaldo Carvalho de Melo : gettext instead of catgets for i18n | ||
*20000213 {1.99} Arnaldo Carvalho de Melo : fixed some i18n strings | ||
* {1.90} Peter Tobias : Added -a and -i options. | ||
* {1.91} Bernd Eckenfels : -v,-V rewritten, long_opts (major rewrite), usage. | ||
*19960120 {1.95} Bernd Eckenfels : -y/nisdomainname - support for get/setdomainname added | ||
*19960218 {1.96} Bernd Eckenfels : netinet/in.h added | ||
*19980629 {1.97} Arnaldo Carvalho de Melo : gettext instead of catgets for i18n | ||
*20000213 {1.99} Arnaldo Carvalho de Melo : fixed some i18n strings | ||
*20010404 {1.100} Arnaldo Carvalho de Melo: use setlocale | ||
*20031011 {1.101} Maik Broemme: gcc 3.x fixes (default: break) | ||
* | ||
* This program is free software; you can redistribute it | ||
* and/or modify it under the terms of the GNU General | ||
|
@@ -31,6 +30,7 @@ | |
* your option) any later version. | ||
*/ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <unistd.h> | ||
#include <stdlib.h> | ||
#include <getopt.h> | ||
|
@@ -79,6 +79,7 @@ static void setnname(char *nname) | |
fprintf(stderr, _("%s: name too long\n"), program_name); | ||
break; | ||
default: | ||
break; | ||
} | ||
exit(1); | ||
} | ||
|
@@ -324,11 +325,12 @@ int main(int argc, char **argv) | |
break; | ||
case 'V': | ||
version(); | ||
break; // not reached | ||
case '?': | ||
case 'h': | ||
default: | ||
usage(); | ||
|
||
break; // not reached | ||
}; | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters