]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/ptm_lib.c
Merge pull request #5410 from ton31337/feature/bgp_default-route_with_route-map_set
[mirror_frr.git] / lib / ptm_lib.c
index 69fd61e2a06998ea914551f4b02b3aeb71e43c24..a2ce9a0e2f3fda49e69e7c20ca16776f54da31c0 100644 (file)
  * with this program; see the file COPYING; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdbool.h>
@@ -120,7 +125,7 @@ static int _ptm_lib_decode_header(csv_t *csv, int *msglen, int *version,
        }
        /* remove leading spaces */
        for (i = j = 0; i < csv_field_len(fld); i++) {
-               if (!isspace((int)hdr[i])) {
+               if (!isspace((unsigned char)hdr[i])) {
                        client_name[j] = hdr[i];
                        j++;
                }