From owner-freebsd-hackers Sat May 31 22:54:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA07930 for hackers-outgoing; Sat, 31 May 1997 22:54:31 -0700 (PDT) Received: from iceberg.anchorage.net. (root@iceberg.anchorage.net [207.14.72.150]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id WAA07923 for ; Sat, 31 May 1997 22:54:28 -0700 (PDT) Received: from aak.anchorage.net (ai-131 [207.14.72.131]) by iceberg.anchorage.net. (8.6.11/8.7.3) with SMTP id UAA02456 for ; Sat, 31 May 1997 20:51:10 -0800 Date: Sat, 31 May 1997 21:43:53 -0800 (AKDT) From: Steve Howe X-Sender: abc@aak.anchorage.net To: freebsd-hackers Subject: signed/unsigned cpp Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk how can this be? i changed my argument to "signed char *" and gcc doesn't like it. so i change it to "unsigned char *" and gcc doesn't like it either! gcc wants to have it's cake and eat it too! it doesn't mind "char *" though. so what's wrong with adding "signed" or "unsigned"? unix.cpp: In function `long unsigned int flen(unsigned char *)': unix.cpp:249: warning: passing `signed char *' as argument 1 of `fopen(const char *, const char *)' changes signedness unix.cpp: In function `long unsigned int flen(unsigned char *)': unix.cpp:249: warning: passing `unsigned char *' as argument 1 of `fopen(const char *, const char *)' changes signedness ------------------------------------------------------------------------- Sleep: a sign a caffeine deprivation ... http://www.anchorage.net/~un_x -------------------------------------------------------------------------