ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/05/04/11:36:05

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Fri, 4 May 2007 17:30:21 +0200
From: Michelle Konzack <dos4michelle AT freenet DOT de>
To: djgpp <djgpp AT delorie DOT com>
Subject: pointer from integer without a cast
Message-ID: <20070504153021.GI1835@freenet.de>
Mime-Version: 1.0
X-Message-Flag: Improper configuration of Outlook is a breeding ground for viruses. Please take care your Client is configured correctly. Greetings Michelle.
X-Disclaimer-DE: Eine weitere Verwendung oder die Veroeffentlichung dieser Mail oder dieser Mailadresse ist nur mit der Einwilligung des Autors gestattet.
Organisation: Michelle's Selbstgebrautes
X-Operating-System: Linux devel.private 2.4.27-2-386
X-Uptime: 15:32:21 up 7 days, 19:03, 11 users, load average: 0.14, 0.17, 0.18
X-Homepage-4: http://freenet-homepage.de/dos4michelle/
User-Agent: Mutt/1.5.9i
Reply-To: djgpp AT delorie DOT com

--SqJDPA0lBYgnDFWV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

It ry to compile an old program "disktool" (X from Linux) and I get the
errors:

disktool.c:177: warning: passing argument 1 of 'statfs' makes pointer from =
integer without a cast
disktool.c:182: warning: passing argument 1 of 'atoi' makes pointer from in=
teger without a cast

=66rom the source:

173: #ifdef SOLARIS2
174:       statvfs(xv_get(part_item[n],PANEL_LABEL_STRING), &buf);
175:       num =3D (buf.f_bavail*buf.f_frsize/1024)/divisor[n];
176: #else
177:       statfs(xv_get(part_item[n],PANEL_LABEL_STRING), &buf);
178:       num =3D (buf.f_bavail*buf.f_bsize/1024)/divisor[n];
179: #endif
180:       if(delta)
181:       {
182:          dnum =3D num - (long)atoi(xv_get(kbyte_item[n], PANEL_LABEL_S=
TRING));
183:          sprintf(sbuf, "(%ld)", abs(dnum));

Any help?

Greetings
    Michelle Konzack


--=20
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

--SqJDPA0lBYgnDFWV
Content-Type: application/pgp-signature; name="signature.pgp"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFGO1GNXnHp6ejAnVoRAoaIAJ4nB19u4vBYJwWGNlvCrkz4curPuQCfRsoi
5OpfqWrxBcWcAGZJfN3Q7QI=
=WmAx
-----END PGP SIGNATURE-----

--SqJDPA0lBYgnDFWV--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019