Replace a magic number.
authorclaudio <claudio@openbsd.org>
Sat, 19 Apr 2014 18:19:57 +0000 (18:19 +0000)
committerclaudio <claudio@openbsd.org>
Sat, 19 Apr 2014 18:19:57 +0000 (18:19 +0000)
usr.sbin/iscsid/initiator.c

index 027b3c4..599eef8 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: initiator.c,v 1.9 2011/05/04 21:00:04 claudio Exp $ */
+/*     $OpenBSD: initiator.c,v 1.10 2014/04/19 18:19:57 claudio Exp $ */
 
 /*
  * Copyright (c) 2009 Claudio Jeker <claudio@openbsd.org>
@@ -76,7 +76,7 @@ initiator_init(void)
        /* initialize initiator defaults */
        initiator_sess_defaults = iscsi_sess_defaults;
        initiator_conn_defaults = iscsi_conn_defaults;
-       initiator_sess_defaults.MaxConnections = 8;
+       initiator_sess_defaults.MaxConnections = ISCSID_DEF_CONNS;
        initiator_conn_defaults.MaxRecvDataSegmentLength = 65536;
 
        return initiator;