Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2005 14:53:46 -0400
From:      Serge Gagnon <serge.gagnon@b2b2c.ca>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/88151: [PATCH] sysutils/disktool make usable
Message-ID:  <E1EVZMI-000731-Jn@quenix1.dyndns.org>
Resent-Message-ID: <200510281900.j9SJ0Rhe075530@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         88151
>Category:       ports
>Synopsis:       [PATCH] sysutils/disktool make usable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 28 19:00:27 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Serge Gagnon
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
me
>Environment:
System: FreeBSD quenix1.dyndns.org 5.4-STABLE FreeBSD 5.4-STABLE #0: Sun Oct 16 19:51:37 EDT 2005 root@quenix1.dyndns.org:/usr/obj/usr/src/sys/OCEAN i386


>Description:
	Make disktool print something other than '0'

	New file: files/patch-disktool.c

	I didn't test with FreeBSD 4.X
>How-To-Repeat:

>Fix:



--- patch-disktool.c begins here ---
--- disktool.c.orig	Fri Oct 28 14:10:55 2005
+++ disktool.c	Fri Oct 28 14:13:09 2005
@@ -168,9 +168,9 @@
 }
 
 /* ==========================================================================*/
-long kbytes(blocks, blocksize)
-     long blocks;
-     long blocksize;
+int64_t kbytes(blocks, blocksize)
+     int64_t blocks;
+     uint64_t blocksize;
 {
   /* Return number of kilobytes given the number of blocks and the block size.
      This isn't quite trivial because a 32 bit signed long integer could easily
--- patch-disktool.c ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1EVZMI-000731-Jn>