]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes signedness in format route attributes.
authorOndrej Zajicek <santiago@crfreenet.org>
Fri, 26 Feb 2010 12:55:22 +0000 (13:55 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Fri, 26 Feb 2010 12:55:22 +0000 (13:55 +0100)
nest/rt-attr.c

index 9d78ce07c1d7b9d661b04a4fb7007fdccd729713..94b105d79578bbfcc2eeb28933bc7393065689bc 100644 (file)
@@ -400,7 +400,7 @@ ea_format(eattr *e, byte *buf)
       switch (e->type & EAF_TYPE_MASK)
        {
        case EAF_TYPE_INT:
-         bsprintf(buf, "%d", e->u.data);
+         bsprintf(buf, "%u", e->u.data);
          break;
        case EAF_TYPE_OPAQUE:
          for(i=0; i<ad->length; i++)