summaryrefslogtreecommitdiff
path: root/camlibs/agfa-cl20
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2007-05-16 19:08:05 +0000
committerMarcus Meissner <marcus@jet.franken.de>2007-05-16 19:08:05 +0000
commit712fa4c5bd8ae476b7d24b768d849aa6933ff3b3 (patch)
tree6448b3e1f6a5b2fe3ea2ddf60c0ce7a752dddb04 /camlibs/agfa-cl20
parent0faf178aef461c19197d504dc9ffc510ee6f592d (diff)
downloadlibgphoto2-712fa4c5bd8ae476b7d24b768d849aa6933ff3b3.tar.gz
removed unused manual function
translate 2 strings git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10240 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/agfa-cl20')
-rw-r--r--camlibs/agfa-cl20/agfa_cl20.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/camlibs/agfa-cl20/agfa_cl20.c b/camlibs/agfa-cl20/agfa_cl20.c
index ba9072094..7a31af118 100644
--- a/camlibs/agfa-cl20/agfa_cl20.c
+++ b/camlibs/agfa-cl20/agfa_cl20.c
@@ -49,7 +49,7 @@
#define GP_MODULE
-static struct {
+static const struct {
char *model;
int usb_vendor;
int usb_product;
@@ -279,7 +279,7 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename,
result = (unsigned char *)calloc(1, 128 * 96 * 4 * 4 + 100 );
- sprintf(result, "P3\n128 96\n255\n");
+ strcpy(result, "P3\n128 96\n255\n");
offset = offset + 14;
temp1 = data[ thumb_start + pixel_count ];
@@ -527,29 +527,15 @@ camera_summary (Camera *camera, CameraText *summary, GPContext *context)
}
if (has_compact_flash == 0) {
- sprintf( summary->text, "Camera appears to not be using CompactFlash storage\n"
- "Unfortunately we do not support that at the moment :-(\n");
+ sprintf( summary->text, _("Camera appears to not be using CompactFlash storage\n"
+ "Unfortunately we do not support that at the moment :-(\n"));
} else {
- sprintf( summary->text, "Camera has taken %d pictures, and is using CompactFlash storage\n", count);
+ sprintf( summary->text, _("Camera has taken %d pictures, and is using CompactFlash storage.\n"), count);
}
return GP_OK;
}
static int
-camera_manual (Camera *camera, CameraText *manual, GPContext *context)
-{
- /*
- * If you would like to tell the user some information about how
- * to use the camera or the driver, this is the place to do.
- */
-
- GP_DEBUG(" * camera_manual()\n"
- " This camera is easy to use!\n");
-
- return (GP_OK);
-}
-
-static int
camera_about (Camera *camera, CameraText *about, GPContext *context)
{
strcpy (about->text, _("agfa_cl20\n"
@@ -668,7 +654,6 @@ camera_init (Camera *camera, GPContext *context)
/* First, set up all the function pointers */
camera->functions->exit = camera_exit;
camera->functions->summary = camera_summary;
- camera->functions->manual = camera_manual;
camera->functions->about = camera_about;
/* Now, tell the filesystem where to get lists, files and info */