/*
- * Copyright (c) 2000, 2001, 2003-2005, 2011, 2012, 2015 Apple Inc. All rights reserved.
+ * Copyright (c) 2000, 2001, 2003-2005, 2011, 2012, 2015, 2019 Apple Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  *
 routine configadd      (       server          : mach_port_t;
                                key             : xmlData;
                                data            : xmlData;
-                        out    newInstance     : int;
+                        out    newInstance     : int;          // no longer used
                         out    status          : int;
            ServerAuditToken    audit_token     : audit_token_t);
 
 routine configget      (       server          : mach_port_t;
                                key             : xmlData;
                         out    data            : xmlDataOut, dealloc;
-                        out    newInstance     : int;
+                        out    newInstance     : int;          // no longer used
                         out    status          : int;
            ServerAuditToken    audit_token     : audit_token_t);
 
                                key             : xmlData;
                                data            : xmlData;
                                instance        : int;
-                        out    newInstance     : int;
+                        out    newInstance     : int;          // no longer used
                         out    status          : int;
            ServerAuditToken    audit_token     : audit_token_t);
 
 routine configadd_s    (       server          : mach_port_t;
                                key             : xmlData;
                                data            : xmlData;
-                        out    newInstance     : int;
+                        out    newInstance     : int;          // no longer used
                         out    status          : int);
 
 routine confignotify   (       server          : mach_port_t;
 
 /*
- * Copyright (c) 2005-2018 Apple Inc. All rights reserved.
+ * Copyright (c) 2005-2019 Apple Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  *
        pthread_attr_t                  tattr;
        pthread_t                       tid;
 
+       *newSession = MACH_PORT_NULL;
+
        session = __SCHelperSessionFindWithPort(server);
        if (session != NULL) {
 #ifdef DEBUG
 
 /*
- * Copyright (c) 2000, 2001, 2003, 2004, 2006, 2008, 2011, 2012, 2014-2017 Apple Inc. All rights reserved.
+ * Copyright (c) 2000, 2001, 2003, 2004, 2006, 2008, 2011, 2012, 2014-2017, 2019 Apple Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  *
        CFDataRef               data            = NULL;         /* data (un-serialized) */
        serverSessionRef        mySession;
 
+       *newInstance = 0;
        *sc_status = kSCStatusOK;
 
        /* un-serialize the key */
        }
 
        *sc_status = __SCDynamicStoreAddValue(mySession->store, key, data);
-       if (*sc_status == kSCStatusOK) {
-               *newInstance = 0;
-       }
 
     done :
 
        SCDynamicStorePrivateRef        storePrivate;
        Boolean                         useSessionKeys;
 
+       *newInstance = 0;
        *sc_status = kSCStatusOK;
 
        /* un-serialize the key */
        storePrivate->useSessionKeys = TRUE;
 
        *sc_status = __SCDynamicStoreAddValue(mySession->store, key, data);
-       if (*sc_status == kSCStatusOK) {
-               *newInstance = 0;
-       }
 
        // restore "useSessionKeys"
        storePrivate->useSessionKeys = useSessionKeys;
 
 /*
- * Copyright (c) 2000-2006, 2008, 2011, 2013-2016 Apple Inc. All rights reserved.
+ * Copyright (c) 2000-2006, 2008, 2011, 2013-2016, 2019 Apple Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  *
 
        *dataRef = NULL;
        *dataLen = 0;
+       *newInstance = 0;
 
        /* un-serialize the key */
        if (!_SCUnserializeString(&key, NULL, (void *)keyRef, keyLen)) {
                goto done;
        }
 
-       /*
-        * return the instance number associated with the returned data.
-        */
-       *newInstance = 1;
-
     done :
 
        if (key != NULL)        CFRelease(key);
 
 /*
- * Copyright (c) 2000-2009, 2011, 2015-2017 Apple Inc. All rights reserved.
+ * Copyright (c) 2000-2009, 2011, 2015-2017, 2019 Apple Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  *
        SCDynamicStorePrivateRef        storePrivate;
        CFBooleanRef                    useSessionKeys  = NULL;
 
+       *newServer = MACH_PORT_NULL;
        *sc_status = kSCStatusOK;
 
        /* un-serialize the name */
 
 /*
- * Copyright (c) 2000-2004, 2006, 2008, 2011, 2012, 2014-2017 Apple Inc. All rights reserved.
+ * Copyright (c) 2000-2004, 2006, 2008, 2011, 2012, 2014-2017, 2019 Apple Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  *
        CFStringRef             key             = NULL; /* key  (un-serialized) */
        serverSessionRef        mySession;
 
+       *newInstance = 0;
        *sc_status = kSCStatusOK;
 
        /* un-serialize the key */
        }
 
        *sc_status = __SCDynamicStoreSetValue(mySession->store, key, data, FALSE);
-       *newInstance = 0;
 
     done :
 
 
 /*
- * Copyright (c) 2000-2006, 2008, 2011. 2015 Apple Inc. All rights reserved.
+ * Copyright (c) 2000-2006, 2008, 2011, 2015, 2019 Apple Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  *
                                 mach_msg_type_number_t keyLen,
                                 xmlData_t              dataRef,
                                 mach_msg_type_number_t dataLen,
-                                int                    *newInstance,
+                                int                    *newInstance,           // no longer used
                                 int                    *sc_status,
                                 audit_token_t          audit_token);
 
                                 mach_msg_type_number_t keyLen,
                                 xmlData_t              dataRef,
                                 mach_msg_type_number_t dataLen,
-                                int                    *newInstance,
+                                int                    *newInstance,           // no longer used
                                 int                    *sc_status);
 
 kern_return_t  _configget      (mach_port_t            server,
                                 mach_msg_type_number_t keyLen,
                                 xmlDataOut_t           *dataRef,
                                 mach_msg_type_number_t *dataLen,
-                                int                    *newInstance,
+                                int                    *newInstance,           // no longer used
                                 int                    *sc_status,
                                 audit_token_t          audit_token);
 
                                 mach_msg_type_number_t keyLen,
                                 xmlData_t              dataRef,
                                 mach_msg_type_number_t dataLen,
-                                int                    *newInstance,
+                                int                    *newInstance,           // no longer used
                                 int                    *sc_status,
                                 audit_token_t          audit_token);
 
 
 __END_DECLS
 
-#endif /* !_S_CONFIGD_SERVER_H */
+#endif /* !_S_CONFIGD_SERVER_H */