From e2c8afa72334152016d1344217839abe54718a77 Mon Sep 17 00:00:00 2001
From: Antonio Ospite <ospite@studenti.unina.it>
Date: Thu, 10 May 2012 12:10:45 +0200
Subject: [PATCH 1/1] picoproj: issue a warning when passing "-f" more than
 once

---
 examples/picoproj.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/examples/picoproj.c b/examples/picoproj.c
index a44a266..e18cc7d 100644
--- a/examples/picoproj.c
+++ b/examples/picoproj.c
@@ -74,6 +74,8 @@ int main(int argc, char *argv[])
 	while ((opt = getopt(argc, argv, "f:F:l:p:W:H:h")) != -1) {
 		switch (opt) {
 		case 'f':
+			if (filename[0] != '\0')
+				fprintf(stderr, "Warning: image file already specified\n");
 			strncpy(filename, optarg, FILENAME_MAX);
 			break;
 		case 'F':
-- 
2.1.4