summary refs log tree commit diff
path: root/sunrpc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-28 01:57:41 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-28 01:57:41 +0000
commit357420c512f4c4d1a73e5ce2b680fcc59c8c468b (patch)
treeedaa18f571cd7cac77938921f4bfbdaadb1fa747 /sunrpc
parenta044c713b054695326df96e7710dd5c8f80ad8c2 (diff)
downloadglibc-357420c512f4c4d1a73e5ce2b680fcc59c8c468b.tar.gz
glibc-357420c512f4c4d1a73e5ce2b680fcc59c8c468b.tar.xz
glibc-357420c512f4c4d1a73e5ce2b680fcc59c8c468b.zip
(get_type): Use "long long" for TOK_HYPER. Otherwise isvectordef will loop infinitely if typedef hyper int64_6 is seen. (unsigned_dec): Use "unsigned long long" for similar reasons.
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/rpc_parse.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sunrpc/rpc_parse.c b/sunrpc/rpc_parse.c
index b036aa456d..c4285d945f 100644
--- a/sunrpc/rpc_parse.c
+++ b/sunrpc/rpc_parse.c
@@ -621,10 +621,10 @@ get_type (const char **prefixp, const char **typep, defkind dkind)
       *typep = "long";
       (void) peekscan (TOK_INT, &tok);
       break;
-	case TOK_HYPER:
-	  *typep = "int64_t";
+    case TOK_HYPER:
+      *typep = "long long";
       (void) peekscan(TOK_INT, &tok);
-	  break;    
+      break;
     case TOK_VOID:
       if (dkind != DEF_UNION && dkind != DEF_PROGRAM)
 	{
@@ -668,11 +668,11 @@ unsigned_dec (const char **typep)
       *typep = "u_long";
       (void) peekscan (TOK_INT, &tok);
       break;
-	case TOK_HYPER:
+    case TOK_HYPER:
       get_token (&tok);
-	  *typep = "uint64_t";
+      *typep = "unsigned long long";
       (void) peekscan(TOK_INT, &tok);
-	  break;    
+      break;
     case TOK_INT:
       get_token (&tok);
       *typep = "u_int";