Skip to content

Commit

Permalink
Maik Broemme contributed gcc warning fixes (break after default: label)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Eckenfels committed Oct 11, 2003
1 parent e02f9d0 commit 17948a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
22 changes: 12 additions & 10 deletions hostname.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -31,6 +30,7 @@
* your option) any later version.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdlib.h>
#include <getopt.h>
Expand Down Expand Up @@ -79,6 +79,7 @@ static void setnname(char *nname)
fprintf(stderr, _("%s: name too long\n"), program_name);
break;
default:
break;
}
exit(1);
}
Expand Down Expand Up @@ -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
};


Expand Down
1 change: 1 addition & 0 deletions lib/inet_sr.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
1998-07-01 - Arnaldo Carvalho de Melo - GNU gettext instead of catgets
1999-10-07 - Kurt Garloff - for -host and gws: prefer host names
over networks (or even reject)
2003-10-11 - Maik Broemme - gcc 3.x warnign fixes (default: break;)
*/

#include "config.h"
Expand Down

0 comments on commit 17948a9

Please sign in to comment.