Commit graph

12 commits

Author SHA1 Message Date
f97ef9ac60 Fix erroneous format string (int => long int)
As reported by cppcheck:

    src/generator.c:91:4: warning: %d in format string (no. 2) requires
    'int' but the argument type is 'signed long'.
    [invalidPrintfArgType_sint]
       fprintf(stderr,"\r%s Selecting degrees... (%d of %d)",
       ^
    src/generator.c:91:4: warning: %d in format string (no. 3) requires
    'int' but the argument type is 'signed long'.
    [invalidPrintfArgType_sint]
       fprintf(stderr,"\r%s Selecting degrees... (%d of %d)",
       ^
2020-02-14 08:39:20 +01:00
17088c631f Fix various errors in list_destroy()
As reported by cppcheck:

    src/list.c:45:8: style: Redundant initialization for 'data'. The
    initialized value is overwritten before it is read.
    [redundantInitialization]
      data = NULL;
       	   ^
    src/list.c:43:15: note: data is initialized
      void * data = list_pop_front(list);
              	  ^
    src/list.c:45:8: note: data is overwritten
      data = NULL;
       	   ^
2020-02-14 08:34:51 +01:00
f24b8bd3a8 Fix erroneous format string (int => long int)
As reported by cppcheck:

    src/degree.c:91:4: warning: %d in format string (no. 2) requires 'int'
    but the argument type is 'signed long'. [invalidPrintfArgType_sint]
       printf("\r%s Selecting degrees... (%d of %d)",
       ^
    src/degree.c:91:4: warning: %d in format string (no. 3) requires 'int'
    but the argument type is 'signed long'. [invalidPrintfArgType_sint]
       printf("\r%s Selecting degrees... (%d of %d)",
       ^
2020-02-14 08:29:36 +01:00
8318eeee13 Fix unverified sscanf result
As reported by cppcheck:

    src/defi.c:41:7: style: Variable 're' is assigned a value that is never used. [unreadVariable]
       re = sscanf(buf, "%ld %ld", &one, &two);
      	  ^
2020-02-14 08:26:39 +01:00
106f4ac8c9 Fix useless assignement to pointer
As reported by cppcheck:

    src/defi.c:18:2: warning: Assignment of function parameter has no
    effect outside the function. Did you forget dereferencing it?
    [uselessAssignmentPtrArg]
     defi = NULL;
     ^
2020-02-14 08:25:22 +01:00
2082407e28 Fix uninitialized variable
As reported by cppcheck:

    src/store.c:365:17: error: Uninitialized variable: average_sum [uninitvar]
      average_avg = average_sum / (cur + 1);
                    ^
2020-02-14 08:24:01 +01:00
af7b7d4291 Fix wrong malloc()
Error reported by cppcheck

    Size of pointer 'cell_var' used instead of size of its data. [pointerSize]
      console_var_t * cell_var =
                  ^
2020-02-14 08:16:48 +01:00
d50547aefa Moved plotting tools out of src/. 2012-08-10 02:20:33 +02:00
dc64e9fb4c src: Use _ALOBE_ prefix instead of mine for defines. 2012-08-10 02:18:21 +02:00
22a5acbaf0 src/Makefile.am: Remove useless comments from an old project. 2012-08-10 02:12:45 +02:00
23ce488f60 Moved data to the data dir & added examples to the README file. 2012-08-10 02:04:52 +02:00
glenux
5ca782e8b1 alobe: inital import (test).
git-svn-id: https://websvn.glenux.net/svn/Upoc/alobe/trunk@1348 eaee96b3-f302-0410-b096-c6cfd47f7835
2009-05-02 07:36:25 +00:00