REST/NAMESTORE: rework API
[oweals/gnunet.git] / src / transport / transport_api2_monitor.c
index 3798296c17fad720408b57bad3a9aaeb1299eb10..315001badf97f44cc0a52cf95e22498758b19c6f 100644 (file)
@@ -14,6 +14,8 @@
 
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+     SPDX-License-Identifier: AGPL3.0-or-later
 */
 
 /**
@@ -174,7 +176,7 @@ handle_monitor_data (void *cls,
   struct GNUNET_TRANSPORT_MonitorInformation mi;
 
   mi.address = (const char *) &md[1];
-  mi.nt = (enum GNUNET_ATS_Network_Type) ntohl (md->nt);
+  mi.nt = (enum GNUNET_NetworkType) ntohl (md->nt);
   mi.cs = (enum GNUNET_TRANSPORT_ConnectionStatus) ntohl (md->cs);
   mi.num_msg_pending = ntohl (md->num_msg_pending);
   mi.num_bytes_pending = ntohl (md->num_bytes_pending);