chiark
/
gitweb
/
~mdw
/
xtoys
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2a10384
)
Kill some spurious warnings.
author
mdw
<mdw>
Sun, 13 Jan 2002 14:43:41 +0000
(14:43 +0000)
committer
mdw
<mdw>
Sun, 13 Jan 2002 14:43:41 +0000
(14:43 +0000)
xgetline.c
patch
|
blob
|
blame
|
history
diff --git
a/xgetline.c
b/xgetline.c
index 1e060ccfae5865e67ca3700cf21b97b1d37d71cb..c9370c85f8b9982cfc686a345ff40fef4dac1f24 100644
(file)
--- a/
xgetline.c
+++ b/
xgetline.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: xgetline.c,v 1.1
1 1999/08/20 07:30:33
mdw Exp $
+ * $Id: xgetline.c,v 1.1
2 2002/01/13 14:43:41
mdw Exp $
*
* Fetch a line of text from the user
*
*
* Fetch a line of text from the user
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: xgetline.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: xgetline.c,v $
+ * Revision 1.12 2002/01/13 14:43:41 mdw
+ * Kill some spurious warnings.
+ *
* Revision 1.11 1999/08/20 07:30:33 mdw
* Miscellaneous changes, mostly concerning options parsing.
*
* Revision 1.11 1999/08/20 07:30:33 mdw
* Miscellaneous changes, mostly concerning options parsing.
*
@@
-179,14
+182,12
@@
int main(int argc, char *argv[])
const char *list = 0;
int histmax = 20;
const char *list = 0;
int histmax = 20;
- GList *hist;
+ GList *hist
= 0
;
- enum {
- f_invis = 1,
- f_duff = 2,
- f_history = 4,
- f_nochoice = 8
- };
+#define f_invis 1u
+#define f_duff 2u
+#define f_history 4u
+#define f_nochoice 8u
/* --- User interface bits --- */
/* --- User interface bits --- */
@@
-351,7
+352,6
@@
Options available are:\n\
* Inability to open the file is not a disaster.
*/
* Inability to open the file is not a disaster.
*/
- hist = 0;
if (fp) {
dstr d = DSTR_INIT;
if (fp) {
dstr d = DSTR_INIT;