mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
90cd7e494b
and faxing with HP inkjet and laser based printers in Linux. The HP driver project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP. WWW: http://hplip.sourceforge.net/ PR: ports/96271 Submitted by: Anish Mistry <amistry@am-productions.biz>
14 lines
557 B
C++
14 lines
557 B
C++
--- prnt/hpijs/hpijsfax.cpp.orig Sat Apr 1 16:35:53 2006
|
|
+++ prnt/hpijs/hpijsfax.cpp Sat Apr 1 16:37:36 2006
|
|
@@ -297,8 +297,8 @@
|
|
|
|
memset (&tv, 0, sizeof (tv));
|
|
gettimeofday (&tv, NULL);
|
|
- cur_time = localtime (&tv.tv_sec);
|
|
- memset (hpFileName, 0, 256);
|
|
+ cur_time = localtime ((const time_t *)&tv.tv_sec);
|
|
+ memset (hpFileName, 0, 256);
|
|
sprintf (hpFileName, "%s/hplipfax%d%d%d%d%d%d.g3", getenv ("TMPDIR"),
|
|
cur_time->tm_year+1900, cur_time->tm_mon+1, cur_time->tm_mday,
|
|
cur_time->tm_hour, cur_time->tm_min, cur_time->tm_sec);
|