Mercurial > hg > FederatedLinda
changeset 73:ad401b7c97bb
fix warnings
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 23 Oct 2009 14:16:59 +0900 |
parents | dba61c334c38 (diff) 0352536c33fa (current diff) |
children | be8bc83c001a |
files | examples/filesend/reader.c examples/filesend/writer.c tools/Linda_library/liblindaapi.a |
diffstat | 8 files changed, 11 insertions(+), 31 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/filesend/reader.c Fri Oct 23 14:11:07 2009 +0900 +++ b/examples/filesend/reader.c Fri Oct 23 14:16:59 2009 +0900 @@ -10,10 +10,10 @@ #define PORT 10000 void -mainLoop(int tid, int read_id, FILE* out) +mainLoop(unsigned int tid, int read_id, FILE* out) { - int rd_seq; - char *tuple, *data; + unsigned int rd_seq; + unsigned char *tuple, *data; int len; /* すでにデータが書き込まれた状態で動くこと */
--- a/examples/filesend/writer.c Fri Oct 23 14:11:07 2009 +0900 +++ b/examples/filesend/writer.c Fri Oct 23 14:16:59 2009 +0900 @@ -53,7 +53,7 @@ void send_serial_id(int tid, int serial_id) { int safe_id = htonl(serial_id); - psx_out(tid, SERIAL_REGIST_TUPLE_NO, &safe_id, sizeof(safe_id)); + psx_out(tid, SERIAL_REGIST_TUPLE_NO, (unsigned char *)&safe_id, sizeof(safe_id)); psx_sync_n(); }
--- a/tools/Linda_library/ldserv.dSYM/Contents/Info.plist Fri Oct 23 14:11:07 2009 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> - <dict> - <key>CFBundleDevelopmentRegion</key> - <string>English</string> - <key>CFBundleIdentifier</key> - <string>com.apple.xcode.dsym.ldserv</string> - <key>CFBundleInfoDictionaryVersion</key> - <string>6.0</string> - <key>CFBundlePackageType</key> - <string>dSYM</string> - <key>CFBundleSignature</key> - <string>????</string> - <key>CFBundleShortVersionString</key> - <string>1.0</string> - <key>CFBundleVersion</key> - <string>1</string> - <key>dSYM_UUID</key> - <dict> - <key>i386</key> - <string>FD417447-D90C-85E4-DCA1-760E6F9780E3</string> - </dict> - </dict> -</plist>
--- a/tools/Linda_library/lindaapi.c Fri Oct 23 14:11:07 2009 +0900 +++ b/tools/Linda_library/lindaapi.c Fri Oct 23 14:16:59 2009 +0900 @@ -11,13 +11,15 @@ #include <unistd.h> #include <netinet/in.h> #include <sys/select.h> -#include <sys/types.h> -#include <sys/socket.h> #include <netdb.h> #include <netinet/tcp.h> #include <sys/un.h> #include <errno.h> +#include <sys/types.h> +#include <sys/socket.h> +#include <arpa/inet.h> + #include "lindaapi.h" @@ -95,6 +97,7 @@ #define unix_read_w read +#if 0 /*-------------------------------------------------------------------/ static int unix_write (int fd, unsigned char *buf, unsigned int size): @@ -118,6 +121,8 @@ #endif return(i); } +#endif + static int unix_write(int fd,unsigned char *buf,unsigned int size) { int count=0;