cvs commit: src/bin/domainname Makefile domainname.c

Matthew Dillon dillon at apollo.backplane.com
Sun Aug 15 12:20:15 PDT 2004


    That fprintf looks a little weird :-)

+		size_t len = strlen(argv[0]);
+		if (len > MAXHOSTNAMELEN) {
+			fprintf(stderr, "%s: domain name to longgetprogname()",
+				getprogname());
+			exit(1);
+		}

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>

:joerg       2004/08/15 05:27:37 PDT
:
:DragonFly src repository
:
:  Modified files:
:    bin/domainname       Makefile domainname.c 
:  Log:
:  - remove prototype for main
:  - make usage() static
:  - remove unnecessary casts of function returns
:  - explicitly check input length against MAXHOSTNAMELEN for setdomainname
:  - explicitly terminate string after getdomainname
:  - minor style cleanup, this is WARNS?= 6 clean.
:  
:  Revision  Changes    Path
:  1.3       +2 -2      src/bin/domainname/Makefile
:  1.5       +16 -9     src/bin/domainname/domainname.c
:
:
:http://www.dragonflybsd.org/cvsweb/src/bin/domainname/Makefile.diff?r1=1.2&r2=1.3&f=u
:http://www.dragonflybsd.org/cvsweb/src/bin/domainname/domainname.c.diff?r1=1.4&r2=1.5&f=u
:






More information about the Commits mailing list