[geany/geany-plugins] 4a7ad5: geanygdb: Don't use strtoull()

Colomban Wendling git-noreply at xxxxx
Sat Jun 9 16:35:48 UTC 2012


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sat, 09 Jun 2012 16:35:48
Commit:      4a7ad516a98a9b2cbc8cbc902bc3e034bb81be4a
             https://github.com/geany/geany-plugins/commit/4a7ad516a98a9b2cbc8cbc902bc3e034bb81be4a

Log Message:
-----------
geanygdb: Don't use strtoull()

strtoull() is a C99 function and the result was stored in an int
anyway, so use strtoul() instead.


Modified Paths:
--------------
    geanygdb/src/gdb-io-read.c
    geanygdb/src/gdb-io-stack.c

Modified: geanygdb/src/gdb-io-read.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -619,7 +619,7 @@
 			gint ec = -1;
 			if (exit_code)
 			{
-				ec = strtoull(exit_code, &tail, 8);
+				ec = strtoul(exit_code, &tail, 8);
 				if ((!tail) || (*tail))
 				{
 					ec = -1;


Modified: geanygdb/src/gdb-io-stack.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -112,7 +112,7 @@
 		if (level && args)
 		{
 			gchar *tail;
-			gint n = strtoull(level, &tail, 10);
+			gint n = strtoul(level, &tail, 10);
 			GdbFrameInfo *frame = NULL;
 			GSList *p;
 			for (p = frame_list; p; p = p->next)


@@ Diff output truncated at 100000 characters. @@


--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).



More information about the Plugins-Commits mailing list