more fixes

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1529 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-03-30 17:45:33 +00:00
parent b201d1fd93
commit 70cea0ce07
2 changed files with 3 additions and 3 deletions

View File

@@ -198,7 +198,7 @@ get_xsockets (int *unix_socket, int *tcp_socket)
break; break;
} }
if (dpy == 256) if (dpy == 256)
errx ("no free x-servers"); errx (1, "no free x-servers");
if (listen (unixfd, SOMAXCONN) < 0) if (listen (unixfd, SOMAXCONN) < 0)
err (1, "listen"); err (1, "listen");
if (tcp_socket) if (tcp_socket)

View File

@@ -261,8 +261,8 @@ list_otps (int argc, char **argv, char *user)
usage(); usage();
db = otp_db_open (); db = otp_db_open ();
if(db == NULL) { if(db == NULL)
errx ("otp_db_open failed"); errx (1, "otp_db_open failed");
if (user) if (user)
print_otp_entry_for_name(db, user); print_otp_entry_for_name(db, user);