projects
/
infodrom
/
dtaus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
92ab9bf
)
Removed some compiler warnings by casting the buffer properly
author
Joey Schulze
<joey@infodrom.org>
Sat, 30 Aug 2003 08:55:47 +0000
(08:55 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Sat, 30 Aug 2003 08:55:47 +0000
(08:55 +0000)
dtaus.c
patch
|
blob
|
history
diff --git
a/dtaus.c
b/dtaus.c
index
dcb69fc
..
a6d8235
100644
(file)
--- a/
dtaus.c
+++ b/
dtaus.c
@@
-896,7
+896,7
@@
void dtaus2control (char *cdtaus, char *ccontrol)
/*
* Record A lesen
*/
/*
* Record A lesen
*/
- if (dtaus_nextrec(buf, fdtaus) == 1) {
+ if (dtaus_nextrec(
(void *)
buf, fdtaus) == 1) {
if (dtaus_char(buf,4) == 'A') {
fprintf(fcontrol, "BEGIN {\n");
bufp = buf;
if (dtaus_char(buf,4) == 'A') {
fprintf(fcontrol, "BEGIN {\n");
bufp = buf;
@@
-932,10
+932,10
@@
void dtaus2control (char *cdtaus, char *ccontrol)
/*
* Record C lesen
*/
/*
* Record C lesen
*/
- if (dtaus_nextrec(buf, fdtaus) == 1) {
+ if (dtaus_nextrec(
(void *)
buf, fdtaus) == 1) {
while (dtaus_char(buf,4) == 'C') {
bufp = buf + 128;
while (dtaus_char(buf,4) == 'C') {
bufp = buf + 128;
- if (dtaus_nextrec(bufp, fdtaus) != 1) {
+ if (dtaus_nextrec(
(void *)
bufp, fdtaus) != 1) {
fprintf (stderr, "Der zweite Teil der Transaktion ist kaputt.\n");
return;
} else {
fprintf (stderr, "Der zweite Teil der Transaktion ist kaputt.\n");
return;
} else {
@@
-996,7
+996,7
@@
void dtaus2control (char *cdtaus, char *ccontrol)
if (res.rem) extC++;
}
}
if (res.rem) extC++;
}
}
- if (dtaus_nextrec(buf, fdtaus) != 1)
+ if (dtaus_nextrec(
(void *)
buf, fdtaus) != 1)
memset (buf, 0, sizeof(buf));
/*
memset (buf, 0, sizeof(buf));
/*
@@
-1015,7
+1015,7
@@
void dtaus2control (char *cdtaus, char *ccontrol)
printctln(fcontrol, string2ext(x), strip_spaces(tmp));
}
}
printctln(fcontrol, string2ext(x), strip_spaces(tmp));
}
}
- if (dtaus_nextrec(buf, fdtaus) != 1)
+ if (dtaus_nextrec(
(void *)
buf, fdtaus) != 1)
memset (buf, 0, sizeof(buf));
extC--;
}
memset (buf, 0, sizeof(buf));
extC--;
}