summaryrefslogtreecommitdiff
path: root/misc/kdeedu3/patches/patch-av
diff options
context:
space:
mode:
Diffstat (limited to 'misc/kdeedu3/patches/patch-av')
-rw-r--r--misc/kdeedu3/patches/patch-av93
1 files changed, 0 insertions, 93 deletions
diff --git a/misc/kdeedu3/patches/patch-av b/misc/kdeedu3/patches/patch-av
deleted file mode 100644
index d4751a1b4d2..00000000000
--- a/misc/kdeedu3/patches/patch-av
+++ /dev/null
@@ -1,93 +0,0 @@
-$NetBSD: patch-av,v 1.1 2005/02/20 11:31:11 markd Exp $
-
---- kstars/kstars/indi/v4ldriver.cpp.orig 2004-10-03 20:13:39.000000000 +1300
-+++ kstars/kstars/indi/v4ldriver.cpp
-@@ -51,8 +51,8 @@ void waitForData(int rp, int wp);
- void updateDataChannel(void *p);
- void updateStream(void * p);
- void getBasicData(void);
--void uploadFile(char * filename);
--int writeFITS(char *filename, char errmsg[]);
-+void uploadFile(const char * filename);
-+int writeFITS(const char *filename, char errmsg[]);
- int grabImage(void);
- int checkPowerN(INumberVectorProperty *np);
- int checkPowerS(ISwitchVectorProperty *sp);
-@@ -461,14 +461,14 @@ void ISNewNumber (const char *dev, const
- int grabImage()
- {
- int err, fd;
-- char errmsg[1024];
-+ char errmsg[ERRMSG_SIZE];
- char filename[] = "/tmp/fitsXXXXXX";
-
-
- if ((fd = mkstemp(filename)) < 0)
- {
-- IDMessage(mydev, "Error making temporary filename.", NULL);
-- IDLog("Error making temporary filename.\n", NULL);
-+ IDMessage(mydev, "Error making temporary filename.");
-+ IDLog("Error making temporary filename.\n");
- return -1;
- }
- close(fd);
-@@ -483,7 +483,7 @@ int grabImage()
- return 0;
- }
-
--int writeFITS(char * filename, char errmsg[])
-+int writeFITS(const char * filename, char errmsg[])
- {
- FITS_FILE* ofp;
- int i, bpp, bpsl, width, height;
-@@ -495,7 +495,7 @@ int writeFITS(char * filename, char errm
- ofp = fits_open (filename, "w");
- if (!ofp)
- {
-- sprintf(errmsg, "Error: cannot open file for writing.");
-+ snprintf(errmsg, ERRMSG_SIZE, "Error: cannot open file for writing.");
- return (-1);
- }
-
-@@ -508,12 +508,12 @@ int writeFITS(char * filename, char errm
- hdu = create_fits_header (ofp, width, height, bpp);
- if (hdu == NULL)
- {
-- sprintf(errmsg, "Error: creating FITS header failed.");
-+ snprintf(errmsg, ERRMSG_SIZE, "Error: creating FITS header failed.");
- return (-1);
- }
- if (fits_write_header (ofp, hdu) < 0)
- {
-- sprintf(errmsg, "Error: writing to FITS header failed.");
-+ snprintf(errmsg, ERRMSG_SIZE, "Error: writing to FITS header failed.");
- return (-1);
- }
-
-@@ -532,7 +532,7 @@ int writeFITS(char * filename, char errm
-
- if (ferror (ofp->fp))
- {
-- sprintf(errmsg, "Error: write error occured");
-+ snprintf(errmsg, ERRMSG_SIZE, "Error: write error occured");
- return (-1);
- }
-
-@@ -730,7 +730,7 @@ FITS_HDU_LIST * create_fits_header (FITS
- hdulist->used.bscale = 1;
- hdulist->bscale = 1.0;
-
-- sprintf(expose_s, "EXPOSURE= %d / milliseconds", V4LFrame->expose);
-+ snprintf(expose_s, sizeof(expose_s), "EXPOSURE= %d / milliseconds", V4LFrame->expose);
-
- fits_add_card (hdulist, expose_s);
- fits_add_card (hdulist, instrumentName);
-@@ -813,7 +813,7 @@ void updateStream(void *p)
-
- }
-
--void uploadFile(char * filename)
-+void uploadFile(const char * filename)
- {
- FILE * fitsFile;
- char frameSize[FRAME_ILEN];