* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include "config.h"
-
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
-#ifdef HAVE_DIRENT_H
-#include <dirent.h>
-#endif
-
-#ifdef HAVE_SYS_STAT_H
-# include <sys/stat.h>
-#endif
+#include <config.h>
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#include <stdio.h>
#include <string.h>
-#include <ctype.h>
#include <glib.h>
while(minlen--) {
baselen--;
- if(!isdigit( (guchar) filename[baselen])) {
+ if(!g_ascii_isdigit( filename[baselen])) {
g_free(filename);
return FALSE;
}
GList *le;
- /* add all entires to the dialog */
+ /* add all entries to the dialog */
le = g_list_first(set.entries);
while(le) {
fileset_dlg_add_file((fileset_entry *)le->data, window);
/* get (convert) directory name, but don't touch the given string */
- fname_dup = get_dirname(g_strdup(fname));
- dirname = g_string_new(fname_dup);
+ fname_dup = g_strdup(fname);
+ dirname = g_string_new(get_dirname(fname_dup));
g_free(fname_dup);
set.dirname = g_strdup(dirname->str);
fileset_entry *entry;
- /* add all entires to the dialog */
+ /* add all entries to the dialog */
le = g_list_first(set.entries);
while(le) {
entry = (fileset_entry *)le->data;
set.dirname = NULL;
}
}
+
+/*
+ * Editor modelines - http://www.wireshark.org/tools/modelines.html
+ *
+ * Local variables:
+ * c-basic-offset: 4
+ * tab-width: 8
+ * indent-tabs-mode: nil
+ * End:
+ *
+ * vi: set shiftwidth=4 tabstop=8 expandtab:
+ * :indentSize=4:tabSize=8:noTabs=true:
+ */