[Lsb-messages] /var/www/bzr/lsb/devel/olver-core-tests r78: still more olver warnings (bug 3384)
Mats Wichmann
mats at linuxfoundation.org
Tue Feb 14 14:30:55 UTC 2012
------------------------------------------------------------
revno: 78
committer: Mats Wichmann <mats at linuxfoundation.org>
branch nick: olver-core-tests
timestamp: Tue 2012-02-14 07:30:55 -0700
message:
still more olver warnings (bug 3384)
modified:
package/Makefile
src/agent/io/fstream/fstream_agent.c
src/agent/locale/ctype/ctype_agent.c
src/agent/ncurses/border/border_agent.c
src/agent/ncurses/char/insert_agent.c
src/agent/ncurses/chstr/add_agent.c
src/agent/ncurses/chstr/input_agent.c
src/agent/ncurses/terminal/terminal_agent.c
src/agent/ncurses/terminal/terminfo_agent.c
src/agent/process/ipc/msg_agent.c
src/agent/socket/rpc/pmap_agent.c
src/agent/socket/socket/socket_agent.c
src/agent/time/timer/timer_agent.c
src/agent/util/assert/assert_agent.c
src/agent/util/format/money_agent.c
src/agent/util/getopt/getopt_agent.c
src/agent/util/string/casecmp_agent.c
src/model/signal/sigstr/tests/sigstr_scenario.sec
src/model/signal/sigwait/tests/sigwait_scenario.sec
src/olverterm/lib/src/screen_visual_row.c
-------------- next part --------------
=== modified file 'package/Makefile'
--- a/package/Makefile 2012-02-14 12:52:56 +0000
+++ b/package/Makefile 2012-02-14 14:30:55 +0000
@@ -1,6 +1,6 @@
PACKAGE=lsb-test-olver-core
VERSION=4.1.3
-RELEASE=5
+RELEASE=6
# for pkgchk
DEPS=
=== modified file 'src/agent/io/fstream/fstream_agent.c'
--- a/src/agent/io/fstream/fstream_agent.c 2008-09-05 17:30:58 +0000
+++ b/src/agent/io/fstream/fstream_agent.c 2012-02-14 14:30:55 +0000
@@ -28,7 +28,13 @@
#include <sys/file.h>
#include <sys/uio.h>
-typedef struct FILE _IO_FILE;
+/* typedef struct FILE _IO_FILE; */
+
+/* since these are binary-only, we need prototypes here */
+int _IO_feof(struct _IO_FILE *);
+int _IO_putc(int, struct _IO_FILE *);
+int _IO_getc(struct _IO_FILE *);
+int _IO_puts(const char *);
/********************************************************************/
/** Helper Functions **/
@@ -52,10 +58,10 @@
static TACommandVerdict _IO_feof_cmd(TAThread thread,TAInputStream stream)
{
- _IO_FILE * file;
+ struct _IO_FILE * file;
int res;
- file=(_IO_FILE*)readPointer(&stream);
+ file=(struct _IO_FILE*)readPointer(&stream);
START_TARGET_OPERATION(thread);
res = _IO_feof(file);
@@ -69,10 +75,10 @@
static TACommandVerdict _IO_getc_cmd(TAThread thread,TAInputStream stream)
{
- _IO_FILE * file;
+ struct _IO_FILE * file;
int res;
- file=(_IO_FILE*)readPointer(&stream);
+ file=(struct _IO_FILE*)readPointer(&stream);
START_TARGET_OPERATION(thread);
res = _IO_getc(file);
@@ -86,12 +92,12 @@
static TACommandVerdict _IO_putc_cmd(TAThread thread,TAInputStream stream)
{
- _IO_FILE * file;
+ struct _IO_FILE * file;
int res;
int __c;
__c=readInt(&stream);
- file=(_IO_FILE*)readPointer(&stream);
+ file=(struct _IO_FILE*)readPointer(&stream);
START_TARGET_OPERATION(thread);
res = _IO_putc(__c, file);
@@ -311,10 +317,10 @@
{
int res;
FILE* file ;
- fpos_t * pos;
+ fpos64_t * pos;
file=(FILE*)readPointer(&stream);
- pos=(fpos_t*)readPointer(&stream);
+ pos=(fpos64_t*)readPointer(&stream);
errno = 0;
START_TARGET_OPERATION(thread);
@@ -644,10 +650,10 @@
{
int res;
FILE* file ;
- fpos_t *pos;
+ fpos64_t *pos;
file=(FILE*)readPointer(&stream);
- pos=(fpos_t *)readPointer(&stream);
+ pos=(fpos64_t *)readPointer(&stream);
errno = 0;
START_TARGET_OPERATION(thread);
=== modified file 'src/agent/locale/ctype/ctype_agent.c'
--- a/src/agent/locale/ctype/ctype_agent.c 2008-09-19 15:48:23 +0000
+++ b/src/agent/locale/ctype/ctype_agent.c 2012-02-14 14:30:55 +0000
@@ -19,6 +19,7 @@
#include "locale/ctype/ctype_agent.h"
#include <ctype.h>
+#include <stdlib.h>
const unsigned short int** __ctype_b_loc(void);
=== modified file 'src/agent/ncurses/border/border_agent.c'
--- a/src/agent/ncurses/border/border_agent.c 2008-09-05 17:30:58 +0000
+++ b/src/agent/ncurses/border/border_agent.c 2012-02-14 14:30:55 +0000
@@ -13,6 +13,9 @@
#include "ncurses/border/border_agent.h"
#include <curses.h>
+chtype readChType(TAInputStream *stream);
+void writeChType(TAThread thread, chtype val);
+
/********************************************************************/
/** Agent Commands **/
/********************************************************************/
=== modified file 'src/agent/ncurses/char/insert_agent.c'
--- a/src/agent/ncurses/char/insert_agent.c 2008-09-05 17:30:58 +0000
+++ b/src/agent/ncurses/char/insert_agent.c 2012-02-14 14:30:55 +0000
@@ -12,6 +12,8 @@
#include "ncurses/char/insert_agent.h"
#include <curses.h>
+chtype readChType(TAInputStream *stream);
+
/********************************************************************/
/** Agent Commands **/
/********************************************************************/
=== modified file 'src/agent/ncurses/chstr/add_agent.c'
--- a/src/agent/ncurses/chstr/add_agent.c 2008-09-05 17:30:58 +0000
+++ b/src/agent/ncurses/chstr/add_agent.c 2012-02-14 14:30:55 +0000
@@ -12,7 +12,7 @@
#include "ncurses/chstr/add_agent.h"
#include <curses.h>
-
+chtype readChType(TAInputStream *stream);
/********************************************************************/
/** Readers **/
=== modified file 'src/agent/ncurses/chstr/input_agent.c'
--- a/src/agent/ncurses/chstr/input_agent.c 2008-09-05 17:30:58 +0000
+++ b/src/agent/ncurses/chstr/input_agent.c 2012-02-14 14:30:55 +0000
@@ -12,7 +12,7 @@
#include "ncurses/chstr/input_agent.h"
#include <curses.h>
-
+void writeChType(TAThread thread, chtype val);
void writeChStr(TAThread thread, chtype *chstr, int lim)
{
=== modified file 'src/agent/ncurses/terminal/terminal_agent.c'
--- a/src/agent/ncurses/terminal/terminal_agent.c 2008-09-19 15:48:23 +0000
+++ b/src/agent/ncurses/terminal/terminal_agent.c 2012-02-14 14:30:55 +0000
@@ -274,7 +274,7 @@
static TACommandVerdict termattrs_cmd(TAThread thread,TAInputStream stream)
{
- chtype * res;
+ chtype res;
START_TARGET_OPERATION(thread);
res = termattrs();
=== modified file 'src/agent/ncurses/terminal/terminfo_agent.c'
--- a/src/agent/ncurses/terminal/terminfo_agent.c 2012-02-14 12:52:56 +0000
+++ b/src/agent/ncurses/terminal/terminfo_agent.c 2012-02-14 14:30:55 +0000
@@ -15,6 +15,7 @@
#include <term.h>
#include <stdlib.h>
#include <string.h>
+#include <stdio.h>
#define NCURSES_STACK_BUFFSIZE 1024*256
#define NCURSES_TERMDUMP ta_get_test_file_path("agent.termdump")
@@ -259,7 +260,7 @@
START_TARGET_OPERATION(thread);
- res = restartterm(term, stdout, &errret);
+ res = restartterm(term, fileno(stdout), &errret);
END_TARGET_OPERATION(thread);
@@ -319,7 +320,7 @@
START_TARGET_OPERATION(thread);
- res = setupterm(term, stdout, &errret);
+ res = setupterm(term, fileno(stdout), &errret);
END_TARGET_OPERATION(thread);
=== modified file 'src/agent/process/ipc/msg_agent.c'
--- a/src/agent/process/ipc/msg_agent.c 2008-09-05 17:30:58 +0000
+++ b/src/agent/process/ipc/msg_agent.c 2012-02-14 14:30:55 +0000
@@ -23,6 +23,7 @@
#include <sys/time.h>
#include <unistd.h>
#include <utime.h>
+#include <string.h>
#include "process/ipc/msg_agent.h"
=== modified file 'src/agent/socket/rpc/pmap_agent.c'
--- a/src/agent/socket/rpc/pmap_agent.c 2008-09-05 17:30:58 +0000
+++ b/src/agent/socket/rpc/pmap_agent.c 2012-02-14 14:30:55 +0000
@@ -19,6 +19,7 @@
#include "socket/rpc/pmap_agent.h"
#include "socket/socket/socket_agent.h"
+#include <stdlib.h>
#include <rpc/pmap_clnt.h>
=== modified file 'src/agent/socket/socket/socket_agent.c'
--- a/src/agent/socket/socket/socket_agent.c 2010-01-15 16:32:58 +0000
+++ b/src/agent/socket/socket/socket_agent.c 2012-02-14 14:30:55 +0000
@@ -20,6 +20,7 @@
#include "socket/socket/socket_agent.h"
#include <stdio.h>
#include <sys/socket.h>
+#include <sys/ioctl.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <string.h>
=== modified file 'src/agent/time/timer/timer_agent.c'
--- a/src/agent/time/timer/timer_agent.c 2008-09-05 17:30:58 +0000
+++ b/src/agent/time/timer/timer_agent.c 2012-02-14 14:30:55 +0000
@@ -21,6 +21,7 @@
#include <time.h>
#include <sys/time.h>
#include <errno.h>
+#include <string.h>
#include "time/timer/timer_agent.h"
#include "process/process/process_common.h"
=== modified file 'src/agent/util/assert/assert_agent.c'
--- a/src/agent/util/assert/assert_agent.c 2008-10-02 16:45:44 +0000
+++ b/src/agent/util/assert/assert_agent.c 2012-02-14 14:30:55 +0000
@@ -18,6 +18,8 @@
#include <stdio.h>
#include <err.h>
+#include <assert.h>
+#include <stdlib.h>
#include "util/assert/assert_agent.h"
#include "process/process/process_common.h"
=== modified file 'src/agent/util/format/money_agent.c'
--- a/src/agent/util/format/money_agent.c 2008-09-05 17:30:58 +0000
+++ b/src/agent/util/format/money_agent.c 2012-02-14 14:30:55 +0000
@@ -19,6 +19,7 @@
#include "util/format/money_agent.h"
#include <errno.h>
+#include <string.h>
#include <monetary.h>
double* readDoubleList(TAInputStream* stream, int* list_size)
=== modified file 'src/agent/util/getopt/getopt_agent.c'
--- a/src/agent/util/getopt/getopt_agent.c 2008-09-05 17:30:58 +0000
+++ b/src/agent/util/getopt/getopt_agent.c 2012-02-14 14:30:55 +0000
@@ -19,6 +19,7 @@
#include <unistd.h>
#include <getopt.h>
#include <stdlib.h>
+#include <string.h>
#include "util/getopt/getopt_agent.h"
char** readListStr(TAInputStream* stream)
=== modified file 'src/agent/util/string/casecmp_agent.c'
--- a/src/agent/util/string/casecmp_agent.c 2008-09-05 17:30:58 +0000
+++ b/src/agent/util/string/casecmp_agent.c 2012-02-14 14:30:55 +0000
@@ -18,6 +18,7 @@
#include "util/string/casecmp_agent.h"
+#include <string.h>
#include <strings.h>
/********************************************************************/
=== modified file 'src/model/signal/sigstr/tests/sigstr_scenario.sec'
--- a/src/model/signal/sigstr/tests/sigstr_scenario.sec 2008-09-05 17:30:58 +0000
+++ b/src/model/signal/sigstr/tests/sigstr_scenario.sec 2012-02-14 14:30:55 +0000
@@ -17,6 +17,7 @@
*/
#include "signal/sigstr/tests/sigstr_scenario.seh"
+#include "signal/sigstr/sigstr_media.seh"
#include <stdio.h>
static CallContext context;
=== modified file 'src/model/signal/sigwait/tests/sigwait_scenario.sec'
--- a/src/model/signal/sigwait/tests/sigwait_scenario.sec 2009-08-25 16:37:01 +0000
+++ b/src/model/signal/sigwait/tests/sigwait_scenario.sec 2012-02-14 14:30:55 +0000
@@ -16,8 +16,8 @@
* limitations under the License.
*/
-
#include "signal/sigwait/tests/sigwait_scenario.seh"
+#include "signal/sigstr/sigstr_media.seh"
static CallContext context_thr1; //context of thread 1
static CallContext context_thr2; //context of thread 2
=== modified file 'src/olverterm/lib/src/screen_visual_row.c'
--- a/src/olverterm/lib/src/screen_visual_row.c 2008-09-19 15:48:23 +0000
+++ b/src/olverterm/lib/src/screen_visual_row.c 2012-02-14 14:30:55 +0000
@@ -9,6 +9,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#define __USE_XOPEN
#include <wchar.h>
#include "screen_row.h"
More information about the lsb-messages
mailing list