fix a few warnings
Warning, cannot access the index:
_darcs/index: opening of '_darcs/index' failed: permission denied (Permission denied)
diff -rN -u old-branch-2-0/src/dev/devSequencer.c new-branch-2-0/src/dev/devSequencer.c
--- old-branch-2-0/src/dev/devSequencer.c 2022-09-26 04:09:42.286751537 +0200
+++ new-branch-2-0/src/dev/devSequencer.c 2022-09-26 04:09:42.286751537 +0200
@@ -188,15 +188,15 @@
and replace null characeter to point end of string.
And assign to sperated strings */
while(argN<3) {
- if(*(inpStr+i) == NULL) break;
+ if(*(inpStr+i) == 0) break;
inpArg[argN++] = inpStr+i;
while(i<80) {
tempChar = inpStr + (i++);
if((*tempChar < '0' || *tempChar > '9') &&
(*tempChar < 'a' || *tempChar > 'z') &&
(*tempChar < 'A' || *tempChar > 'Z') ) {
- if(*tempChar == NULL) i-=1;
- *tempChar = NULL;
+ if(*tempChar == 0) i-=1;
+ *tempChar = 0;
break;
}
}
diff -rN -u old-branch-2-0/src/seq/seq_qry.c new-branch-2-0/src/seq/seq_qry.c
--- old-branch-2-0/src/seq/seq_qry.c 2022-09-26 04:09:42.286751537 +0200
+++ new-branch-2-0/src/seq/seq_qry.c 2022-09-26 04:09:42.286751537 +0200
@@ -476,7 +476,7 @@
pSP = seqFindProg(tid);
if (pSP == NULL)
{
- printf("No state program exists for thread id %ld\n", (long)tid);
+ printf("No state program exists for thread id %p\n", tid);
return NULL;
}
diff -rN -u old-branch-2-0/src/snc/gen_ss_code.c new-branch-2-0/src/snc/gen_ss_code.c
--- old-branch-2-0/src/snc/gen_ss_code.c 2022-09-26 04:09:42.286751537 +0200
+++ new-branch-2-0/src/snc/gen_ss_code.c 2022-09-26 04:09:42.286751537 +0200
@@ -299,7 +299,7 @@
/* local declarations are handled as text */
if (tp->type == E_TEXT)
{
- printf("\t\t%s\n", tp->left);
+ printf("\t\t%s\n", (char *)tp->left);
}
else if (tp->type == E_WHEN)
@@ -566,7 +566,7 @@
printf("]");
break;
case E_TEXT:
- printf("%s\n", ep->left);
+ printf("%s\n", (char *)ep->left);
line_num += 1;
break;
default:
diff -rN -u old-branch-2-0/src/snc/phase2.c new-branch-2-0/src/snc/phase2.c
--- old-branch-2-0/src/snc/phase2.c 2022-09-26 04:09:42.286751537 +0200
+++ new-branch-2-0/src/snc/phase2.c 2022-09-26 04:09:42.286751537 +0200
@@ -429,7 +429,7 @@
for (; ep != NULL; ep = ep->next)
{
print_line_num(ep->line_num, ep->src_file);
- printf("%s\n", ep->left);
+ printf("%s\n", (char *)ep->left);
}
}
return;
@@ -447,7 +447,7 @@
print_line_num(ep->line_num, ep->src_file);
for (; ep != NULL; ep = ep->next)
{
- printf("%s\n", ep->left);
+ printf("%s\n", (char *)ep->left);
}
}
return;
diff -rN -u old-branch-2-0/src/snc/snc_lex.l new-branch-2-0/src/snc/snc_lex.l
--- old-branch-2-0/src/snc/snc_lex.l 2022-09-26 04:09:42.286751537 +0200
+++ new-branch-2-0/src/snc/snc_lex.l 2022-09-26 04:09:42.286751537 +0200
@@ -39,6 +39,7 @@
*/
#include <string.h>
+#include <stdlib.h>
#include <unistd.h>
#ifndef TRUE
patch 90791322f0148b0bc6872f1e97c0f8780ae53ee3
Author: ben.franksen@online.de
Date: Thu Apr 7 13:24:29 CEST 2011
* fix a few warning