Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Dec 2009 21:44:41 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200085 - head/libexec/ulog-helper
Message-ID:  <200912032144.nB3Lifts026977@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Thu Dec  3 21:44:41 2009
New Revision: 200085
URL: http://svn.freebsd.org/changeset/base/200085

Log:
  Repair breakage to last-minute API change.
  
  I changed ulog_log{in,out} to return a void, but forgot to change
  ulog-helper as well.
  
  Reported by:	stefanf

Modified:
  head/libexec/ulog-helper/ulog-helper.c

Modified: head/libexec/ulog-helper/ulog-helper.c
==============================================================================
--- head/libexec/ulog-helper/ulog-helper.c	Thu Dec  3 20:59:28 2009	(r200084)
+++ head/libexec/ulog-helper/ulog-helper.c	Thu Dec  3 21:44:41 2009	(r200085)
@@ -68,12 +68,10 @@ main(int argc, char *argv[])
 		if (argc == 3)
 			host = argv[2];
 
-		if (ulog_login(line, pwd->pw_name, host) != 0)
-			return (EX_OSFILE);
+		ulog_login(line, pwd->pw_name, host);
 		return (EX_OK);
 	} else if (argc == 2 && strcmp(argv[1], "logout") == 0) {
-		if (ulog_logout(line) != 0)
-			return (EX_OSFILE);
+		ulog_logout(line);
 		return (EX_OK);
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912032144.nB3Lifts026977>